Module thresholds

Source
Expand description

CO2 level thresholds and categorization.

This module provides configurable thresholds for categorizing CO2 levels and other sensor readings into actionable categories.

§Example

use aranet_core::{Thresholds, Co2Level};

// Use default thresholds
let thresholds = Thresholds::default();

// Evaluate a CO2 reading
let level = thresholds.evaluate_co2(800);
assert_eq!(level, Co2Level::Good);

// Get action recommendation
println!("{}", level.action());

Structs§

ThresholdConfig
Configuration for CO2 thresholds.
Thresholds
Threshold evaluator for sensor readings.

Enums§

Co2Level
CO2 level category based on concentration.