Changed DHT22 to be object oriented rather than a function.