how can we convert temperature sensor data to floating( celsius, fahrenheit)?
Without any other details about your sensor, wiring, code... the most I can say is that you need to calibrate it. Place the sensor at something with a known temperature (test_temp) and take notes of the output (test_output). Then, if the response is linear, you can get the converted temperature (converted_temp) from a measurement (meas_output) as:
converted_temp=meas_output*test_temp/test_output
Maybe you should also get the temperature at which the meas_output=0 (zero_temp) and
converted_temp=meas_output*test_temp/test_output+zero_temp
If the response is not linear you should measure more points and study its response.
If you give more details we could help you better
ultraiot:
how can we convert temperature sensor data to floating( celsius, fahrenheit)?
Are you using LM35 or DS18B20 or thermistor type temperature sensor?
Are you recording temperature as integer value like 230C?
Do you want to record temperature value having both integer part and fractional part what we usually call 'floating point' value?