esp32-dht11-rs 0.1.3

A Rust crate that reads temperature and humidity data from the DHT11 sensors for esp32 series.
docs.rs failed to build esp32-dht11-rs-0.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: esp32-dht11-rs-0.1.1

esp32-dht11-rs

esp32-dht11-rs is is a Rust crate that reads temperature and humidity data from the DHT11 sensors for esp32 series.

This library is #![no_std] and depends on embedded_hal and esp-hal.

Usage

    let delay = Delay::new();
    let mut dht11 = DHT11::new(peripherals.GPIO2, delay);

    loop {
        match dht11.read() {
            Ok(m) => log::info!(
                "DHT 11 Sensor - Temperature: {} °C, humidity: {} %",
                m.temperature,
                m.humidity
            ),
            Err(error) => log::error!("An error occurred while trying to read sensor: {:?}", error),
        }
        delay.delay_millis(1000);
    }