Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/void-ux/pms7003

A Python client driver for the PMS7003 particle matter sensor
https://github.com/void-ux/pms7003

gpio particle-matter pms7003 raspberry-pi rpi sensor serialport

Last synced: 12 days ago
JSON representation

A Python client driver for the PMS7003 particle matter sensor

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