Class for DHT11, DHT21 and DHT22 (temperature & humidity)

I have just checked it using dht22 read.
The measures are closed to real but there are errors:
Humidity is lower than real
Temperature is higher than real