Post your best Lua script examples here

User avatar
By quantalume
#7719
javiery wrote:I update the module:

Fix for negatives temperatures.
Fix send out start signal.
Fix for multiple reads.
If read error humidity set to -1.

Current version: https://github.com/javieryanez/nodemcu-modules/tree/master/dht22


Thank you! I was having problems reading again after the first read, but it is fixed now. I can confirm that the module works with DHT21 (AM2301) also.
User avatar
By javiery
#8754 By adding floating point NodeMcu the latest versions of many scripts have stopped working properly. The module for DHT22 was affected. I made an update to work with or without floating point. Also I changed the error control, now the error is indicated with humidity = nil (before humidity = -1).

The example also been updated

Current version: https://github.com/javieryanez/nodemcu-modules/tree/master/dht22