Implementation of DHT22 class (temperature sensor)