Skip to content

float value for humidity #4

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

Open
zerr0s opened this issue Apr 27, 2019 · 0 comments
Open

float value for humidity #4

zerr0s opened this issue Apr 27, 2019 · 0 comments

Comments

@zerr0s
Copy link

zerr0s commented Apr 27, 2019

Hi, forgive me for my bad english. I'm trying to get float values for T° and Humidity from a DHT22 sensor.

I have followed examples:

  const temp = readout.temperature.toFixed(2);
  const hum = readout.humidity.toFixed(2);

But the result is:
Temp: 22.50
Hum: 43

If I try to read from Adafruit python:

~ # /opt/Adafruit_Python_DHT/examples/AdafruitDHT.py 22 17
Temp=22.5*  Humidity=43.6%

How can I get a float value for Humidity ? Thanks.

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

1 participant