raise IOError("Distance Sensor not found")
self.mutex = None
if use_mutex is True:
self.mutex = Mutex()
self.set_descriptor("Distance Sensor")
// Returns the values in cms
def read_mm(self):
After Change
self.filtered_humidity = []
// we are using an event so we can close the thread as soon as KeyboardInterrupt is raised
self.event = threading.Event()
if self.sensor_type == 0:
self.set_descriptor("Blue DHT Sensor")
else:
self.set_descriptor("White DHT Sensor")