0

I am using DHT11 and GrovePi+ shield with Pi 2 running Raspbian Jessie.

The following is the function call for the sensor to fetch current humidity and temperature

[ temp,hum ] = dht(dht_sensor_port,0)   

The problem is that it returns only the values before decimal. The values after decimal are truncated to 0.

Please do let me know if I am missing anything or the sensor needs to be replaced with a DHT22.

1 Answer 1

3

The DHT11 only returns degrees and quotes an accuracy of +/- 2 degrees.

The DHT22 returns tenths of a degree and quotes an accuracy of +/- 0.2 degrees.

The source for this information is the widely available datasheets.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.