1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![no_std]

mod dht;
pub mod dht11;
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,
}