often my DHT sensor returns 00 01 93 ff ff ff ff ff ff with translates into NaN and NaN.
What is this value?
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
Here you’ll find a nice scenario with some really nice graphs and explanations.
Here is a more portable solution I’ve posted as a reply to the first
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.
I understood what the problem was - be ready, it’s rather stupid.
I was reading light and temperature concurrently
I’m glad everything solved out.
GrovePi library sometimes has some timing issues and because of this, I’d suggest you use
locks when developing
This topic was automatically closed after 22 hours. New replies are no longer allowed.