-->
Page 1 of 1

DHT11 Communication difficulties

PostPosted: Mon Mar 14, 2016 2:57 am
by gheath
I am having some difficulties in reading the DHT11 temperature/Humidity sensor from Nodemcu LUA.

This is with both the Lua module and the compiled in version. it seems to work (most of the time) when the esp is doing nothing else. but when you are doing any other functionality like writing to GPIOs it seems to fail very regularly. Currently I am flashing an LED and reading the t/humidity using a timer(5 Secs). The read DHT call fails every second time.

I guess I can program round it But !!!

The LUA module version looks very time dependant but I haven't managed to unpick the compiled version.

Any thoughts?