4 from pms5003
import PMS5003
, ReadTimeoutError
8 format
='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s',
10 datefmt
='%Y-%m-%d %H:%M:%S')
12 logging
.info("""particulates.py - Print readings from the PMS5003 particulate sensor.
24 readings
= pms5003
.read()
25 logging
.info(readings
)
27 except ReadTimeoutError
:
29 except KeyboardInterrupt: