* /// Map output voltage of the LPPS-22 to measured distance, in mm. pub fn interpret_reading(voltage_read: f32, excitation_voltage: f32, range_out: (f32, f32)) -> f32 { let portion = voltage_read / excitation_voltage; portion * (range_out.1 - range_out.0) + range_out.0 }