Trait i2csensors::Hygrometer [] [src]

pub trait Hygrometer {
    type Error: Error;
    fn relative_humidity(&mut self) -> Result<f32, Self::Error>;
}

Trait for sensors that provide access to humidity readings

Associated Types

Required Methods

Read the relative humidity from the sensor in percent

Implementors