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
except Exception as e:
print("DHTSensor: {}".format(e))
raise ValueError("DHT Sensor not found")
def read_temperature(self):
"""
Return values may be a float, or error strings