Rust SHTCx Driver

Build status Test coverage Crates.io Version Crates.io Downloads

This is a platform agnostic Rust driver for the Sensirion SHTCx temperature / humidity sensor series, based on the embedded-hal traits.

Tested with the following sensors:

Support for the SHTC1 will be added later on. Support for SHTWx should be doable as well, since the protocol seems to be very similar.

Docs: https://docs.rs/shtcx

The Device

The Sensirion SHTCx series offers low-power high-precision digital temperature and humidity sensors that communicate over the I²C bus.

Status

Examples

There are two examples in the examples directory: The linux example queries the sensor a few times using linux-embedded-hal, while the monitor example implements a terminal based real-time graphical temperature/humidity monitoring tool.

gif

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.