Read the statement by Michael Teeuw here.
MMM-DHT22 Humidity and Temperature Module
-
Hi guys
I have some problems with this module. I test it with two DHT22 and I have always the same strange thing. Please look my short clip: [Youtube](video: https://youtu.be/gvuq6A13fw8). Sometimes it shows quickly the exact Temp and sometimes strange values but most of the time it shows undefined. I try to made a skipt outside of the MM and in this picture (link) you can see , at the same time my skript shows the right value but in MM its undefined.
Can someone test this module or help me to find the fault? THX a lot for any help! -
What’s the result when you try this command directli in your terminal:
go to
cd MagicMirror/modules/MMM-DHT22/sudo ./dht_var 2Replace
2with your sensor PinI’ve tested this on two different Pi’s
-
@Bangee ok, now I’m confused ;o)

The first 5 lines I tried during my MM was working but nothing happend, i had to wait 2 minutes and it shows just a new comment line. After i stopped my MM it was working like a charm (last two lines). What I’m doing wrong?..
-
I don’t now atm :-)
it looks like something is blocking the dht_var script when your MM is running
Do you have error in your MM logs?
-
I just checkt it and I don’t have any errors …;o(
-
I’ve tried this on an other pi and it works …
can you uncomment line 33 in node_helper.js to check if he tries to write something in to the logs?
console.log("Log: " + temp + " - " + hum); -
THX @Bangee for your help. Now i got this error:

-
Right. Please replace the word
tempwitharr[1]andhumwitharr[0]in line 33 in node_helper.js -
Now my logs looks like this after I changed line 33:

-
Okay, so it definitely fails retrieving data from the sensor, but the error handling does not catch this failure.
-
I have test it with two dht22. One was mine and one I received from @Bangee who was so kind to test it before sending it and it was working at his home, but when I tried it at my home it wasn’t working. So I have no Idea what can be the failure.
-
Hi ,
so I just figure it out, that the motiondetector by alexyak blocking the DHT22 script. If I disable this module my DHT 22 works perfect. Somebody knows what make this problem? -
that’s very strange!?!
Is this module working with a PIR Sensor or a Webcam?
Im using Paviro’s PIR Sensor to turn on an off my monitor. -
With picamera. I installed MM on my other pi (completely new installation) and i got the same problem after i installed the motion detector. So I disabled on my MM the motion detector and it works fine on both pi’s. It’s very strange ;o(
-
No one an idea?
-
I am using a PIR sensor.
So i can’t reproduce it. -
Dear guys,
Ive tried to run this skript,nevertheless it’s showing me ‘undefined’ when I am running it in MM-Mode.
Ive already checked the Pin setup and it should be right. Furthermore Ive checked your advises in the posts above me.Do you have an idea how to fix this error or even how to get an idea where the error is? :D
Kind regards :)
-
can you post a pic of your wiring?
when you run the command
sudo ./dht_vardirect in your console, what happens? -
hy
i have also the problem that the sensor shows only undefined.
if i run your dht_var it shows nothing…
sudo ./dht_var 2 5 returns after 5 seconds without any message…found out that it is only not working if i have enabled the PIR-Sensor Modul…
-
@MxBln I have the same question. It works, but it shows me way to high temperatures and humidity. How did you do it with a DTC11 ?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login