# SCD30 modbus driver
[](https://github.com/teamplayer3/scd30-modbus-rs/actions?query=workflow%3ARust)
[](https://github.com/teamplayer3/scd30-modbus-rs)
[](https://crates.io/crates/scd30-modbus)
[](https://docs.rs/scd30-modbus)
Implementation of an SCD30 sensor driver using the [modbus protocol](https://de.wikipedia.org/wiki/Modbus) written in rust. This driver is written async/await style. Currently the [smol](https://github.com/smol-rs/smol) runtime is supported.
For more information about the sensor [here](https://sensirion.com/de/produkte/katalog/SCD30/).
## Example
```rust
let serial = ...; // serial bus to use
let mut driver = Scd30::new(serial);
driver.set_measurement_interval(Duration::from_secs(15)).await.unwrap();
driver.start_measuring().await.unwrap();
let measurements = driver.read().await.unwrap().unwrap();
```