The use of the ESP8266 in the world of IoT

User avatar
By Fadi
#2622 hansaya,

change the value of HIGHLEVEL (in the .h file) to 20 or 21
and give it a try.

if you connected everything right and used the initialize function by passing correct parameters the only thing left
to go wrong is sensing that the bits you are getting are all 1s without any 0s.

DHT11/22.. define the 1 and 0 by the length of time that the signal level is held at HIGH_LEVEL_VOLTAGE.

so when you count the number of uSec. that the dataline is HIGH, you can determine if that was a 1 or a 0.

let me know if that works for you.

Fadi