I am running build 120 of ESPEasy on a NodeMCU v1 with a DHT11 connected on GPO10 with a 10k resistor across pin 3 and GND. Every time I boot the device, I get an initial Temp and Hum reading from it and it shows up in MQTT as expected. However, it seems that when it goes back to update the readings, I get nan as a result. I do not have my device in a metal enclose of any type as I saw in another post. It is just all hooked up on a breadboard sitting on my desk. The log shows nothing unusual as far as I can tell. Any ideas?
Hi, I don’t use DHT11 but I have 3 DHT22 set up on similar board to NodeMCU running ESPEasy 120.
I had problems with initial reading but it was caused by bad wire connection.
The thing that I see different in my setup than yours is that I have all direct connections without any resistors. So ground to ground pin, data to gpio pin and voltage to 3V pin.
Removing the pullup resistor did the trick. The ESPEasy website made it look like a resistor was required, but using it without one now and it is working as it should. Thanks!
And it looks like I spoke too soon. It was able to update about 8 times before it started reporting nan again. Back to the drawing board! Definitely an improvement from just getting 1 reading though!
Update:
Moved DATA from GPIO10 to GPIO02 and it has now been working for over 20 minutes. Going to add it to HASS so I can keep an eye on it through the day. while I am at work
I’ve checked it and my DHT works on GPIO 14 so maybe GPIO 2 is a problem.
I had tried PIR on one of my boards. Didn’t manage to get it working.
The problem is that PIR sensor is very sensitive to interference. Search ESPEasy forum and you’ll see that a lot of people has problems with it.
Mine worked maybe for 15 minutes correctly but later was showing movement even though there was nobody present. I’ve read about setting it up on longer cables so that it’s further away from ESP or screening it from ESP interefence with aluminium foil. I did not try that cause I was just testing if I can get it working, after it failed I’ve given up. At least for now.
If you’ll manage to get PIR it working please let me know.
I was originally using GPIO10 and switched over to GPIO 2, This ended up doing the trick. The module has been up and running all day with no faults. Thanks for the help!!
Even if the PIR worked with 3.3v, how did you plan to use that with ESPEasy ? Do you have any thoughts ?
I have a ESP board that can be fed from 5v directly so for me 5V shouldn’t be any problem. But I dont understand should I use the PIR as an Input Switch or anything else ?
By the way, the board I am talking about is this one below. Have a look, in case it helps…
Though the seller description doesn’t help much but you can use this board as standalone and use the 5V pin directly from FTDI USB adapter.