Hello,
I have the following problem I am trying to make a DHT11 support under ESP8266 I want to use this in a smart home. Unfortunately it doesn't want to work properly for me.
I have already tried three approaches:
1. Handling based on the code from http://www.bntdumas.com/2015/07/23/how-to-battery-powered-temperature-and-humidity-sensors/ and the forum esp8266.com
Unfortunately even there the problem is raised that from one of the firmware versions the code works wrong
2. The second approach based on what the signal from the DHT11 should look like I checked at the right time if it was giving 1, and I made the reading dependent on this.
Unfortunately this solution did not work
3. I made a counter on a variable that would count up to the duration of the high signal until the low signal appeared. And based on that time I determined if it should be 1 or 0. Unfortunately this didn't want to work. My script didn't notice the low state.
Maybe someone has done directly on ESP8266 and LUA and is able to help me how to make it work or has some other idea how to read temperature and humidity.
Thanks a lot in advance for your help
I have the following problem I am trying to make a DHT11 support under ESP8266 I want to use this in a smart home. Unfortunately it doesn't want to work properly for me.
I have already tried three approaches:
1. Handling based on the code from http://www.bntdumas.com/2015/07/23/how-to-battery-powered-temperature-and-humidity-sensors/ and the forum esp8266.com
Unfortunately even there the problem is raised that from one of the firmware versions the code works wrong
2. The second approach based on what the signal from the DHT11 should look like I checked at the right time if it was giving 1, and I made the reading dependent on this.
Unfortunately this solution did not work
3. I made a counter on a variable that would count up to the duration of the high signal until the low signal appeared. And based on that time I determined if it should be 1 or 0. Unfortunately this didn't want to work. My script didn't notice the low state.
Maybe someone has done directly on ESP8266 and LUA and is able to help me how to make it work or has some other idea how to read temperature and humidity.
Thanks a lot in advance for your help