Sensirion SPS30 Python library
Sensirion SPS30 PM Sensor
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.
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()
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.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for sensirion_sps30-0.2.0-py3-none-any.whl