HELP WITH DHT11 (humidity/temperature sensor) #1401
Replies: 4 comments
-
Posted at 2020-04-15 by @MaBecker add toFixed(2) a.temp.toFixed(2).toString() |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-17 by cogo33 @MaBecker thanks for the support. But, i want to know if the sensor has more resolution. With toFixed(2) appears .00 and i need por precision to study my data. The question is: DHT11 has this resolution? There are some code that i have to add? Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-17 by @MaBecker Not sure what you expect from a cheap sensor like DHT11t +-2 degrees accuracy DHT22 +-0.5 degrees accuracy and than it’s getting expensive like TMP117 +- 0.1 degrees accuracy |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-17 by cogo33 Thank you! I'll provide a DHT22 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-04-15 by cogo33
I'm using a temperature / humidity sensor (DHT11) like this:
var dht = require ("DHT11"). connect (C11);
dht.read (function (a) {console.log ("Temp is" + a.temp.toString () + "and RH is" + a.rh.toString ());});
However, I wanted a resolution of at least two decimal places. But I only get the whole number ... How should I proceed?
Beta Was this translation helpful? Give feedback.
All reactions