/* ADC internal TemperatureSensor mode. 
This function enables the internal temperature sensor for ADC input and displays the current room temperature in serial console after the calculation done using ADC result.  */
void adc_temp_sensor(void)
/* ADC internal TemperatureSensor mode. 
This function enables the internal temperature sensor for ADC input and displays the current room temperature in serial console after the calculation done using ADC result.  */
void adc_temp_sensor(void)
{
	float temp;
	system_voltage_reference_enable(SYSTEM_VOLTAGE_REFERENCE_TEMPSENSE);
	configure_adc_temp();
	load_calibration_data();
	raw_result = adc_start_read_result();
	temp = calculate_temperature(raw_result);
	printf("\nThe current temperature is = %f degree Celsius", temp);
}