@@ -0,0 +1,384 @@
+%0Aimport sys%0A%0Aimport Adafruit_DHT%0A%0Aclass SensorReader(object):%0A%09def __init__(self, sensor = 22 , pin = 4 ):%0A%09%09self.sensor = sensor%0A%09%09self.pin = pin%0A%0A%09def read_DHT(self):%0A%09%09return Adafruit_DHT.read_retry(self.sensor,self.pin)%0A%0A%09def get_temp(self):%0A%09%09return Adafruit_DHT.read_retry(self.sensor,self.pin)%5B1%5D%0A%0A%09def get_humi(self):%0A%09%09return Adafruit_DHT.read_retry(self.sensor,self.pin)%5B0%5D%0A

add sensor reader file