Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHT11 returns 0 values sometimes #13

Open
thrazu opened this issue Feb 5, 2018 · 1 comment
Open

DHT11 returns 0 values sometimes #13

thrazu opened this issue Feb 5, 2018 · 1 comment
Assignees

Comments

@thrazu
Copy link

thrazu commented Feb 5, 2018

Hi. Here is a copy of my console.log output. The script runs in a 5 seconds fetchInterval:

Humidity 33% Temperature 22°C
Humidity 33% Temperature 22°C
Humidity 0% Temperature 0°C
Humidity 33% Temperature 22°C
Humidity 33% Temperature 22°C
Humidity 33% Temperature 22°C
Humidity 0% Temperature 0°C
Humidity 33% Temperature 22°C

Do you have any idea why the script returns 0 values? Need some help please.

@Vuzi Vuzi self-assigned this Feb 7, 2018
@Vuzi
Copy link
Owner

Vuzi commented Feb 7, 2018

Can you try to fetch the sensor's data with another lib (for example in python where the lib's are the easier to use for testing) ? If you're still getting 0 s it might be the sensor returning this value (or an invalid value which ends up with 0) ; but if other libs are able to get the result then something is wrong with my lib..

You still can try to fetch data at a slowest pace (i.e. every 10 seconds for example) and see if it makes any difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants