Based on your code snippet, it seems that you are using our bsec_integration.c sample code. As you have found in this other thread, you will need to subscribe to the specific virtual outputs you would like to enable. In bsec_integration.c, this is done in the fuction bme680_bsec_update_subscription(). To enable the eCO2 and bVOC outputs, please make sure BSEC_OUTPUT_CO2_EQUIVALENT and BSEC_OUTPUT_BREATH_VOC_EQUIVALENT are correctly fed into bsec_update_subscription(). A few comments after a brief overlook at your code snippet: If you are following our sample code (and for most standard BSEC applications), the sensor configurations are handled automatically, therefore they should not be overwritten in reconnect(), BSEC requires precise timings. As it seems you have currently selected BSEC's Low-Power mode (LP), you will need to meet the 3s sampling interval for BSEC to run properly. But in your function reconnect(), you have inserted a blocking loop with 5s delays, therefore BSEC will be significantly interrupted and you will loose in performance.
... View more