distance_sensor.DistanceSensor.__init__(self)
except Exception as e:
print(e)
raise IOError("Distance Sensor not found")
self.mutex = None
if use_mutex is True:
self.mutex = Mutex()
After Change
self.sensor_type = sensor_type
// here we keep the temperature values after removing outliers
self.filtered_temperature = []
// here we keep the filtered humidity values after removing the outliers
self.filtered_humidity = []