CircuitPython helper library for SDS011 Pollution Sensor
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
import time import board import busio
import roboticsmasters_SDS011
uart = busio.UART(board.GROVE_TX, board.GROVE_RX, baudrate=9600)
sensor = roboticsmasters_SDS011.SDS011(uart)
- while True:
- data = sensor.query() print(data) time.sleep(5)
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
For information on building library documentation, please check out this guide.