Read the statement by Michael Teeuw here.
MMM-DHT-Sensor - Get temperature & humidity values from a DHT sensor
-
@ryck
Thank you for your help! :)
Finally it works now.By the way… the module looks pretty cool ;-)
-
@PaulB Thank you!
-
ive managed to install the module however the reading show 0 degress and 0% humidity im using a DHT22 btw is this a hardware problem or what? the sensor’s pin 1(Vcc) and pin 4(GND) is connected to a external 3.3v powersouce meaning the pin 2(data) together with a 10k ohms resistor connected in pin 1 and 2 is the only pin connected to the PIs GPIO
-
@weee99,
It looks like the module is working, so it has to be a problem with your pins.
I would recommend to try it this way: -
@weeee99 Seems like the module is working… Have you tried to access the sensor directly? Look my previous post in this thread to know how to do it. Make sure that the pin in the correct one (GPIO and physical pins are not the same, so it can be a little bit confusing). Finally, the one I got (https://www.amazon.co.uk/gp/product/B01N6PB489/ref=oh_aui_search_detailpage?ie=UTF8&psc=1) is plug directly to the Pi, no breadboard / resistance required…
-
Hello ryck,
I have a problem with using your module.
When starting MagicMirror the module sometimes stays on “Recieving Sensor Data…” and doesnt actually read the sensor. In rare cases it works, but only once. The module doesnt read the temperature and humidity again and won’t update. I’ve already tried different Update intervals and delaying the initial load time.
I’m having this problem since the last update of module. Any ideas?
-
Hi
I have the same problem. Sometimes it will start and show correctly and other times it will just show “Loading sensor data”. When it starts It will then update the values for a few times. It then freeze and just wont update again. It doesn’t disappear like it should for 1/3rd of a second to do the update anymore. -
If the author ever comes back, I’ve made a couple of changes to the module that I’d love to see applied.
Floating point trouble, (both temperature and humidity values are coming up as “xx.xxx9999999999”)
I have a DHT22, but it did this with the DHT11 too, before I burned it up trying to move it from one board to another.
This gives you the tens and rounds off the rest.
// Convert C to F if (this.config.units === "imperial") { this.temperature = Math.round((data.temperature * 9/5 + 32)*10)/10; } else { this.temperature = data.temperature; } if (typeof this.temperature !== "undefined" && this.temperature !== null) { this.sendNotification("INDOOR_TEMPERATURE", this.temperature); } this.humidity = Math.round(data.humidity*10)/10; if (typeof this.humidity !== "undefined" && this.humidity !== null) { this.sendNotification("INDOOR_HUMIDITY", this.humidity); } this.updateDom(this.config.animationSpeed); }