MH-Z* family CO2 sensor driver built on top of embedded-io-async primitives. This
is a no_std crate suitable for use on bare-metal.
A fork of https://github.com/xaep/mh-zx-driver adapting the project to work
with embedded-io-async.
// assume you have some embedded hal implementation giving you
// a tx and rx object.
let (tx, rx) = uart.split();
let mut sensor = Sensor::from_tx_rx(tx, rx);
let measurement = sensor.read().await.unwrap();
println!("co2 concentration: {}ppm", measurement.co2);The code has been tested with MH-Z14 sensor, other sensors in MH-Z* family support the same UART protocol thus should work.