I am using DHT22 temperature/humidity sensor and I noticed that there exist so many libraries. I wonder which one is the most accurate?

It is giving me readings that does not seem to be logic. High temperature and very low RH%. Is it because of the library or because I am not connecting 10k or 4.7k resistor?

Thank you so much in advance.

Regards, Badr Eddine

  • Did you try other libraries? – gre_gor Aug 29 '16 at 15:39
  • Did you try connecting the resistor? – Majenko Aug 29 '16 at 15:43
  • Yes, when I tried other libraries, similar results giving me low humidity level. I did not try the resistor. Is it mandatory? – Badreddine Zebbiche Aug 29 '16 at 16:40
  • have the same problem <20% and in real its 68% – Wa Gi Sep 19 '16 at 16:13
  • For the DHT units (11 and 22 and AM2302) you want the Adafruit_Sensor and DHT libraries. Have you tried those? Plus, it would be very helpful to see your code in a question like this. – SDsolar May 7 '17 at 2:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.