This code base was taken from a few different upstream sources.
Modified only slightly to work with the DF-Robot ESP32 and the DF-Robot BME680 sensor.
See my micropython wrapper library, it will handle all the common functions.
In addition I added an IAQ scoring function.
Has better exception handling built in as well.
Python BME680 library
Micropython changes above
Custom I2C Libary