Sensirion / arduino-i2c-scd4x

Arduino library for Sensirion SCD4x sensors
BSD 3-Clause "New" or "Revised" License
48 stars 19 forks source link

Unable to read CO2 but temperature and humidty works fine #28

Closed antonio-emilio closed 1 year ago

antonio-emilio commented 1 year ago

Hi everyone! I've bougth a SCD41 sensor from mouser and developed my own custom board with it. I originally had connected 3V3 on it, but since the readings of the CO2 didn't work, I changed to 5V, but still doesn't work.

I've been receiving "Invalid sample detected, skipping.". When I remove this validation, I can see that CO2 is zero, but temperature and humidty readings are fine. What could be?

image

antonio-emilio commented 1 year ago

Also, performing the self test didn't returned anything. The returned value is 0.

qfisch commented 1 year ago

Hello @antonio-emilio ,

Interesting issue you have here. Did you modify the example script outside of removing the validation ? Do you have any other sensor on your custom board ?

antonio-emilio commented 1 year ago

Hello @antonio-emilio ,

Interesting issue you have here. Did you modify the example script outside of removing the validation ? Do you have any other sensor on your custom board ?

Actually, I managed to make it work.... turns out that I didn't solder the sensor very well... Power issue :P But thank you a lot!