Smart Thermostat is now a legacy project › Forums › English support forum › Relay Box › Reply To: Relay Box
Hi again,
today I had a couple of hours to test the simple dht library. Finally I discovered that I was doing the connections with the DHT sensor wrong (the GND wire was connected to the serial pin in the dht). :-S
After that, I got the DHT to work and I tested the Simple DHT library, and compared it with the DHTStable library.
It is true that the SimpleDHT library seems more “stable”. That means that if I do a lot of requests with short intervals (each 5 seconds more or less), the SimpleDHT library returns always values, and never errors.
The DHTStable library seems not to tolerate very fast requests but it works well when requesting data each 10 seconds or greater.
BUT, using the DHTSimple, I received a wrong value for the humidity (always values like 3,30% or 3.50%). ANd using the DHTStable, I received accurate values (the right humidity at this moment should be around 50%).
Because of that I will remain using the DHTStable but thank you again for the suggestion.
And, very important: I found a bug. You are right: under certain circumstances, the thermostat may poll the sensor very fast, two or three times per second! That is a bug in the old relic app, is fixed now. I will release an update in the next weeks, I think this bug should not impact you always…
Thanks for the feedback!