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

no-std bin+lib scd4x

Rust driver for the Sensirion SCD4x series. Carbon Dioxide / Temperature / Humidity sensors.

6 releases

0.3.0 Feb 18, 2024
0.2.3 Feb 18, 2024
0.2.2 Jan 4, 2024
0.2.1 Dec 30, 2021
0.1.0 Mar 21, 2021

#1464 in Embedded development

Download history 8/week @ 2024-07-26 152/week @ 2024-08-02 123/week @ 2024-08-09 70/week @ 2024-08-16 69/week @ 2024-08-23 54/week @ 2024-08-30 45/week @ 2024-09-06 47/week @ 2024-09-13 219/week @ 2024-09-20 84/week @ 2024-09-27 148/week @ 2024-10-04 305/week @ 2024-10-11 227/week @ 2024-10-18 34/week @ 2024-10-25

746 downloads per month

MIT/Apache

27KB
450 lines

Sensirion I2C SCD4x Driver

This library provides an embedded no_std driver for the Sensirion SCD4x series. This driver was built using embedded-hal traits. The implementaion are based on embedded-i2c-scd4x and sgpc3-rs.

Sensirion SCD4x

The SCD4x is a miniature carbon dioxide sensor. It also measure temperature and relative humidity.

Further information: Datasheet CO2 Sensor SCD4x

Usage

Run scd4x-util to read the serial number and the measurement output.

cargo run --features="util"

See an example using linux-embedded-hal in examples/linux.rs.

cargo run --example linux

Development Status

The driver is in an early development state. It allows you to:

  • Get the serial number.
  • Read the measurement output.

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

~0.1–7.5MB
~56K SLoC