Skip to content

Commit

Permalink
Update pms5003.py
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwang16 authored Feb 19, 2024
1 parent c2286c2 commit b60fb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt_io/modules/sensor/pms5003.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_value(self, sens_conf: ConfigType) -> SensorValueType:
Get the particulate data from the sensor
"""
#turn sensor off if interval between readings is >= 2 minutes
sleep_sensor = sens_conf["interval"] >= 120
sleep_sensor = sens_conf["interval"] >= 120
if sleep_sensor:
self.sensor.set_to_wakeup()
time.sleep(30)
Expand Down

0 comments on commit b60fb17

Please sign in to comment.