Closed jstefans closed 8 months ago
Hi @jstefans
This could be caused by a connection or power issue. There is a closed issue where I believe someone had the same problem that you are having. The suggestions provided in the following comment might help you out: https://github.com/Sensirion/arduino-i2c-sgp41/issues/2#issuecomment-1248295728
The code itself looks fine to me.
Hello, I'm having trouble getting the following code from Sensirion working on my ESP32-S2 dev board. https://github.com/Sensirion/arduino-i2c-sgp41.
I've made the following addition to the Sensirion code to setup the correct GPIOs for the I2C bus
I believe the hardware is connected correctly for the following reasons. 1) I'm able to see the correct address on the I2C scanner 2) I'm able to retrieve my components' serial number 3) Another Sensirion sensor on the same I2C bus (different sensor model and address) is functioning correctly.
However I get the following error when running the above code -"executeSelfTest failed with error: Not enough data received" and "Error trying to execute measureRawSignals(): Not enough data received"
I've added serialprints to self-test result, raw values, and conditioning countdown. Self-test is returning "42405"
Please let me know how I can debug and next steps, thanks for helping me out.
Code:
Output: