- Wed Dec 09, 2015 2:09 am
#36049
Hey guys, I am having some issues here with the DHT22. I was able to get the code working and posting to MQTT but not with the version of dht22.lua listed on Github. I had to find an older version somewhere out there on the web. The github version crashes my ESP with the last message being "Connected to MQTT:10.0.0.150:1883", then it reboots. Every time.
I was able to get it working but in the version I have working the temp and humidity are all over the place:
Temp:-3277.2.9999999999272
Humidity: -0.1.9
I did some reading and found that to use these scripts you must be using nodemcu-float. I have tried float and I have tried integer and both gave me the same exact results. What am I missing? There are so many copy/pasted versions in this thread. Does anyone have a working copy that can link the dht22.lua file they are using? Is it the same as the github version?
Using an ESP-01 if that makes any difference, its all breadboarded and using a 2a power supply.