- The sensor is good, I tested it with RPI
Could you please confirm what you mean by that? Does that mean that the same sensor/HW but connected to a RPI instead of STM32L071RBT will show valid humidity and gas outputs?
- the read and write functions work well.
Did you confirm this with an oscilloscope/logic analyzer? If so can you also confirm that your timings are valid (e.g . 3seconds between BSEC calls match the timestamp)?