DHTNew: Sensors getting stuck at a certain value
I have two AM2302s connected to pins 0 and 2 of an ESP32, after a while of working perfectly they only return a static value…
My loop looks like this:
- AM2302s get read using
.read(); - Values get sent to InfluxDB using
.getTemperature();and.getHumidity(); - 10 second wait
I have tried adding .reset(); before the 10 second wait but that only made them return 0 or -999 instead of a static value.

About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 37 (20 by maintainers)
Okay! Relais are here, I changed this value to 90
I also added a small array to keep track of past values and if the last three values are the same, the relais will dis and reconnect the sensor.
Currently i cant upload the code as im not Home, but i can do it later today
Ok so apparently they just forgot to update the status on their Website… I just got a mail saying it’s gonna be delivered today…