Post your best Lua script examples here

User avatar
By EadF
#11146 google found this DHT22 wiki: electrodragon.com

With 3.3V voltage supply cable length shall not be more than 30cm.


Each read out the temperature and humidity values ​​are the result of the last measurement, For the real-time data, sequential read twice, Recommended repeatedly reads the sensor and each read sensor interval is greater than 2 seconds to obtain accurate data.

I think roughly translates to: "read the sensor twice with at least 2 sec interval, keep the last value".

Edit: I just did a simple test where i continously sampled the DHT22 after i connected it. It takes about 10 samples before the humidity is stable
(and it's not just my sweaty palms that caused it ;))