reading SI7021 (humidity/temp) with ESP-12
Posted: Sun Apr 17, 2016 12:40 pm
I have a few SI7021 sensors that I want to read with a ESP-21. I'm pretty sure I've had it working a few months ago, but forgot what library I used for it
The sensors are i2c sensors, and when I use a i2c scanner, I can find them on address 0x40. The problem is that whatever library I use, I seem to get bogus values out of it. For instance, when I use the example here: http://www.instructables.com/id/MINI-Si ... LSTEPSTemp RH
I get values like:
Temp RH
-47.54C -6.49%
When I pull out the sensor, I get the same kind of values, so it seems like the code is not even doeing anything with the sensor. I tried a few sensors (to make sure I didn't have a broken one), but the result was the same.
The libraries on https://github.com/LowPowerLab/SI7021 and https://github.com/mlsorensen/SI7021 also don't give the right results.
Any ideas?
The sensors are i2c sensors, and when I use a i2c scanner, I can find them on address 0x40. The problem is that whatever library I use, I seem to get bogus values out of it. For instance, when I use the example here: http://www.instructables.com/id/MINI-Si ... LSTEPSTemp RH
I get values like:
Temp RH
-47.54C -6.49%
When I pull out the sensor, I get the same kind of values, so it seems like the code is not even doeing anything with the sensor. I tried a few sensors (to make sure I didn't have a broken one), but the result was the same.
The libraries on https://github.com/LowPowerLab/SI7021 and https://github.com/mlsorensen/SI7021 also don't give the right results.
Any ideas?