Dht11 Temp/Humidity sensor readings are inaccurate.

Hi all, I have a Dht11 temp/humidity sensor, (datasheet: http://www.micropik.com/PDF/dht11.pdf) and the temperature readings I am receiving are inaccurate by around 5 degrees. I wanted to know if this inaccuracy was due to the design of the sensor or the programming. I have included the program I've used.

Dht11_test1.ino (2.69 KB)

The DHT11 is not an accurate sensor, 5 degrees is really bad. most I have seen are between 0-3 degrees off.
What you might do is to add a constant offset to the temperature to be reasonable right.

The DHT22 is a bit better, it supports one decimal and negative temperatures.

The DS18B20 (which uses another protocol) is for most applications the best price quality. The DS does not support humidity however.