cast adc value to float