Sensirion SPS30 Python library
Project description
Sensirion SPS30 PM Sensor
Short description
This is a simple library to communicate with a Sensirion SPS30 sensor via Serial communication. The SPS30 is an MCERTS-certified particulate matter sensor based on laser scattering measurement principles. It can classify particles within PM1.0, PM2.5, PM4 and PM10 categories.
For further details refer to the official documentation of the sensor.
Usage
Example Python script to read and print a single measurement.
from time import sleep
from sensirion_sps30 import SPS30
port: str = "COM3"
sps30 = SPS30(port)
sps30.start_measurement()
sleep(5)
data = sps30.read_values()
print(data)
sps30.stop_measurement()
Contributions
Community contributions are a welcome addition to the project. Before introducing any major features or changes to the existing API please consider opening an issue to outline your proposal.
Bug reports are also welcome on the issue page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sensirion_sps30-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7212387d2a1909cf43cad4330beb0e16c8bebef95e602e1d62999f6e1bcff1c7 |
|
MD5 | 352e6af374bdd87ae148b2d05cf38f7a |
|
BLAKE2b-256 | 56a8172c80c4cace4b660fa17e404be58b7ebe071e132bd9b4f4bbdf61183627 |