ENS160 driver

Build Status License Crates.io Documentation

Implementation of an ENS160 sensor driver written in rust. This sensor can measure TVOC and ECO2. Implementation is inspired by the driver implementation by dfrobots written in python.

For more information about the sensor here.

Example

```rust let i2c = ...; // I2C bus to use

let mut device = Ens160::new(i2c); let tvoc = device.gettvoc().unwrap(); let eco2 = device.geteco2().unwrap();

let airqualityindex = AirqualityIndex::tryfrom(eco2).unwrap();

let i2c = device.release(); // destruct driver to use bus with other drivers ```