Just to be really certain, can you show us a list with the values you get?
Say .. a screenshot of your terminal.
Coming back to your problem, the
DHT sensor is know for having lots of noise on its lines.
NaN is read, this means there was noise down the line and the values couldn't be read from the sensor.
For this issue I have a solution for you that I've developed a couple of weeks ago.
Here are 2
topics that have as a subject the noise on the
Nonetheless, you also have access to this solution from within our
Here's a link to the algorithm which helps reduce the noise between the
DHT and the
Please try out some of those example programs and tell us how it goes.
If there's anything else that needs our attention, please inform us.