SDS011 Library
Project description
sds011lib
sds011lib
is a fully-typed, nearly-complete, python 3.8+ library for interacting with the SDS011 Air Quality Sensor.
The full documentation is available at https://timorme.github.io/sds011lib/
Installation
pip install sds011lib
Quickstart
from sds011lib import SDS011QueryReader
from serial import Serial
# Setup a query-mode reader on /dev/ttyUSB0
sensor = SDS011QueryReader(ser_dev=Serial('/dev/ttyUSB0', timeout=2))
# Read some data!
aqi = sensor.query()
print(aqi.pm25)
print(aqi.pm10)
# Put the device to sleep
sensor.sleep()
# Wake it back up
sensor.wake()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sds011lib-0.2.0.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for sds011lib-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d0f268ab2f52e60dcb382af57a4b0d7eaa234e1e3a07e1a0bbeae7612f8e259 |
|
MD5 | d2bb73c6a79e2a0de9e74ead4d6c9a6f |
|
BLAKE2b-256 | e6d6a6b9c335a16c8dfa8df98d03ba7d1bfc02d9e59e5e8749d18dc4bb2dc4e0 |