pub fn volts_from_adc(adc_value: u16, v_ref: f32) -> f32
Convert raw ADC value to voltage, assuming 12-bit resolution.