Crates.io | pms5003 |
lib.rs | pms5003 |
version | 0.1.1 |
source | src |
created_at | 2024-03-17 18:21:02.286665 |
updated_at | 2024-03-17 18:24:07.47626 |
description | PMS5003 air quality sensor interface |
homepage | |
repository | https://github.com/shutton/pms5003-rs.git |
max_upload_size | |
id | 1176702 |
size | 47,285 |
This is a Rust interface to the Plantower PMS5003 particulate air quality monitor.
The PMS5003 is ubiqutious in air quality monitoring devices, capable of measuring particle counts in varying sizes and reporting via a serial interface. The sensor can easily be connected to a Raspberry Pi UART via a breadboard adaptor, which can be sourced from a number of vendors, such as Adafruit.
Since the data from the sensor is a continous stream, this crate provides a simplified interface that will catch a frame marker and then return an async stream of measurements from the sensor. You can also utilize the aqi
module to wrap this interface and obtain summary snapshots of the data, which provide instantaneous AQI computations. Note that the interpretation and usage of AQI data varies by country, and is intended to be averaged over certain periods of time. The AQI monitor can be configured for different granularity (e.g., 1-minute) and retention times (e.g., one day). One-minute measurements are common on many sites that report air quality.