pub trait DhtSensor<HE> {
    fn read(&mut self) -> Result<Reading, DhtError<HE>>;
}
Expand description

A trait for reading data from the sensor

This level of indirection is useful so you can write generic code that does not assume whether a DHT11 or DHT22 sensor is being used.

Required Methods§

Reads data from the sensor and returns a Reading

Implementors§