SDS011 Library
Project description
sds011lib
sds011lib
is a fully-typed, nearly-complete, python3 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.1.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for sds011lib-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 090ab7bfcfe501cf9550078466c5d7677addbaeb404208052766ff8aac2565c4 |
|
MD5 | 221a94c4501aa33263e5e0898e1e89a6 |
|
BLAKE2b-256 | 6dd594859892bc6fe47d6a5e14afd51873bbb65333f9584108687838e47c44bb |