#temperature-humidity #humidity-sensor #temperature-sensor #humidity

no-std shtcx

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

5 releases (1 stable)

1.0.0 May 13, 2024
0.11.0 Dec 29, 2022
0.10.0 Oct 23, 2020
0.9.0 Feb 11, 2020
0.1.0 Jan 25, 2020

#115 in Hardware support

Download history 76/week @ 2024-06-29 69/week @ 2024-07-06 118/week @ 2024-07-13 81/week @ 2024-07-20 139/week @ 2024-07-27 204/week @ 2024-08-03 143/week @ 2024-08-10 176/week @ 2024-08-17 203/week @ 2024-08-24 187/week @ 2024-08-31 181/week @ 2024-09-07 177/week @ 2024-09-14 193/week @ 2024-09-21 163/week @ 2024-09-28 163/week @ 2024-10-05 82/week @ 2024-10-12

633 downloads per month
Used in 2 crates

MIT/Apache

48KB
707 lines

Rust SHTCx / SHTWx Driver

Build status 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

~56KB