esp_adc_cal_raw_to_voltage() function
Convert an ADC reading to voltage in mV This function converts an ADC reading to a voltage in mV based on the ADC's characteristics.
Arguments
chars
Pointer to initialized structure containing ADC characteristics
Return value
Voltage in mV
Notes
Characteristics structure must be initialized before this function is called (call esp_adc_cal_characterize())