embedded-dht-rs 0.3.2

A platform agnostic driver to interface with the DHT11 / DHT20 (AHT20) / DHT22 (AM2302) temperature and humidity sensor
Documentation
#![no_std]

mod dht;

#[cfg(feature = "dht11")]
pub mod dht11;

#[cfg(feature = "dht20")]
pub mod dht20;

#[cfg(feature = "dht22")]
pub mod dht22;

/// Represents a reading from the sensor.
pub struct SensorReading<T> {
    pub humidity: T,
    pub temperature: T,
}

/// Possible errors when interacting with the sensor.
#[derive(Debug)]
pub enum SensorError {
    ChecksumMismatch,
}