Module humidity_core::sensors
source · Expand description
§Sensors and calibrations
Defines the Sensor
trait for all sensors to implement
§TODO
- Introduce a mechanism to override calibrations, specially to support different calibrations based on different environments.
§Supported sensors
- Hygrometers
§Examples
use humidity_core::sensors::{Hygrometer, Sensor};
let sensor = Hygrometer::HW390;
println!("sensor reading: {}", sensor.percentage(1200));
Enums§
- Represents a variety of soil moisture sensors.
Traits§
- Defines common behaviour for all sensors, such as getting the calibrated low and high values, and provides a function to compute where a value fits within the calibrated boundaries.