Class definition for DHT22 component (temperature sensor)