errors from DHT11 data

Peter on 4 Apr 2023
Latest activity Reply by Peter on 6 Apr 2023

I am using the standard code written by Daniel. The temperature is giving -11.8 and the humidity 150. This is not for all data points. Any help would be appreciated
Peter
Peter on 6 Apr 2023
Hi Thanks for the response.
I am using an ESP8266 NodeMCU ver 1.0
libraries: ESP8266 weather station by thingpulse ver 2.1.0
ESP8266 and ESP32 OLED driver for SSD 1306 displays by thingpulse, Fabrice Weinberg ver 4.4.0
DHT sensor library by adafruit ver 1.4.4
DHT sensor library for ESPx by beeegee_tokyo ver 1.1.8
here is the link to the code I have a feeling maybe i have the wrong sensor library software being my weakness
Christopher Stapels
Christopher Stapels on 6 Apr 2023 (Edited on 6 Apr 2023)
Code looks ok, I would recommend using the ThingSpeak library if possible.
One thing I would try is to output the temp and humidity values to the serial port, just to make sure nothing weird is happening when you format the values and send them to ThingSpeak.
Another thing to try is to write a constant value to ThingSpeak. If that works everytime, you are limiting out any other problems in your code or connection.
I do remember occasional problems with flaky sensors when I was doing more projects with dht 11. You might consider a sealed sensor like the bme 680 perhaps. If you use the dht11 outside in a non sealed container, Ive found condensation can cause it to create erronious results.
Peter
Peter on 6 Apr 2023
thanks for the suggestions I will dig a little deeper
Christopher Stapels
Christopher Stapels on 4 Apr 2023
What hardware are you using? What libraries are you using? Can you give us a link to the code created by Daniel?
Peter
1
Post
2
Replies

Tags

No tags entered yet.