Does anyone else have issues with DHT22 throwing random crazy temps?
I send dht22 data every minute via MQTT to node red and throw it in influxDB.
Does anyone else have issues with DHT22 throwing random crazy temps?
I send dht22 data every minute via MQTT to node red and throw it in influxDB.
float t = dht22.getTemperature() * (9.0/5.0) + 32.0;
float h = dht22.getHumidity();
message from Serial monitor
Sending message to topic: sensors/658d0c848bc2c/658a3821f029c/data
[{"TEMP":-459.3999939,"HUM":34.59999847,"PLUG_1":"1","PLUG_2":"0"},{"app_key":"658d0c848bc2c","dev_key":"658a3821f029c"}]
CALLING HOME TO CHECK IN
anyway, I added some code to hopefully resolve...or....recheck reading.
float t = dht22.getTemperature() * (9.0/5.0) + 32.0;
if(t < -100){
//check temp after faulty reading. been getting -459.3999939 at random.
delay(2000);
t = dht22.getTemperature() * (9.0/5.0) + 32.0;
}
Your DHT22 is connected to a device that resets.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.