#temperature-humidity #humidity #temperature #sensirion #humidity-sensor #embedded-hal-driver

no-std shtcx

Platform agnostic Rust driver for the Sensirion SHTCx series temperature/humidity sensors

4 releases (breaking)

0.11.0 Dec 29, 2022
0.10.0 Oct 23, 2020
0.9.0 Feb 11, 2020
0.1.0 Jan 25, 2020

#917 in Embedded development

Download history 407/week @ 2023-12-15 135/week @ 2023-12-22 114/week @ 2023-12-29 179/week @ 2024-01-05 173/week @ 2024-01-12 217/week @ 2024-01-19 185/week @ 2024-01-26 246/week @ 2024-02-02 183/week @ 2024-02-09 197/week @ 2024-02-16 210/week @ 2024-02-23 260/week @ 2024-03-01 258/week @ 2024-03-08 212/week @ 2024-03-15 405/week @ 2024-03-22 452/week @ 2024-03-29

1,373 downloads per month
Used in 2 crates

MIT/Apache

47KB
686 lines

Rust SHTCx / SHTWx Driver

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

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

Tested with the following sensors:

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.

The SHTWx series uses the same protocol, but in a wafer-level chip-scale package (WLCSP).

Status

  • Measure temperature and humidity
  • Get device identifier
  • Sleep / Wakeup commands
  • Soft reset command
  • Support for low power mode
  • CRC checks
  • Docs

Examples

There are a few examples in the examples directory: The linux-<target> example queries the sensor a few times using linux-embedded-hal, while the monitor-<target> 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.

Dependencies

~71KB