https://github.com/void-ux/pms7003
A Python client driver for the PMS7003 particulate matter sensor
https://github.com/void-ux/pms7003
gpio particle-matter pms7003 raspberry-pi rpi sensor serialport
Last synced: 2 months ago
JSON representation
A Python client driver for the PMS7003 particulate matter sensor
- Host: GitHub
- URL: https://github.com/void-ux/pms7003
- Owner: Void-ux
- License: mit
- Created: 2024-12-21T01:42:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-21T23:27:51.000Z (over 1 year ago)
- Last Synced: 2025-02-14T08:37:01.292Z (over 1 year ago)
- Topics: gpio, particle-matter, pms7003, raspberry-pi, rpi, sensor, serialport
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### pms7003
A small, elegant and performant client driver for the PMS7003 particulate matter sensor.
This code was tested on the Raspberry Pi 5, though feel free to use this on any machine with Python and a serial port.
```python
from pms7003 import PMSSensor
with PMSSensor('/dev/ttyAMA0') as sensor:
while True:
print(sensor.read())
```
### Installation
Installing the library is simple and done purely through git, so make sure you have it installed (`sudo apt-get git` on Debian-based).
```shell
pip install git+https://github.com/Void-ux/pms7003.git
```
### License
MIT