Trait esp_ward::peripherals::HumiditySensor
source · pub trait HumiditySensor {
// Required method
fn get_humidity(&mut self) -> Result<f32, PeripheralError>;
}
Expand description
Trait for peripherals that can sense humidity levels.
Required Methods§
sourcefn get_humidity(&mut self) -> Result<f32, PeripheralError>
fn get_humidity(&mut self) -> Result<f32, PeripheralError>
Reads the humidity level as a percentage.