We tried executing the example sketch "basic.ino" in the BSEC library v220.127.116.11. But we find it always return eroor code '-2'.
We uncommented the macro BME680_FLOAT_POINT_COMPENSATION in "bme680_defs.h". Though the example code always throw error code '-2'.
Why does it always return '-2'?
The BME680 Error code -2 corresponds to 'BME680_E_COM_FAIL' which means that the communcation between the host microcontroller and the sensor failed. Please verify the connections.