def run(self):
    sensor = adafruit_dht.DHT11(board.D16)
    while self.go:
        try:
            interface.temperature_queue = sensor.temperature
        except:
            logging.error('Temperature Sensor Error')
            print('Temp Read Error')
        if (interface.temperature_queue <= 0):
            time.sleep(1)
        else:
            time.sleep(10)
def run(self):
    sensor = adafruit_dht.DHT11(board.D16)
    while self.go:
        try:
            interface.temperature_queue = sensor.temperature
        except:
            logging.error('Temperature Sensor Error')
            print('Temp Read Error')
        if (interface.temperature_queue <= 0):
            time.sleep(1)
        else:
            time.sleep(10)