Skip to content

Adafruit Air Quality Sensor

Beau edited this page Feb 25, 2023 · 1 revision

Connect Air Quality Sensor via QT cable to back of Ubo

https://learn.adafruit.com/pmsa003i/python-circuitpython

import board
import busio
from digitalio import DigitalInOut, Direction, Pull
from adafruit_pm25.i2c import PM25_I2C

reset_pin = None

i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)
pm25 = PM25_I2C(i2c, reset_pin)

print(pm25.read())
Clone this wiki locally