This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

conversion to degrees Celsius

How do the conversion to degrees Celsius after I read the adc this:

HalAdcRead tempSample = uint16 (HAL_ADC_CHN_TEMP, HAL_ADC_RESOLUTION_12);

or rather what the relationship should I do to get the value in degrees Celsius from this tempSample adc reading?