Temperature Monitoring Sytem

How can I visualize the graph in a better way? notice the y-axis, it doesn’t make any sense.

Please check the code section the y-axis reading are shown in farenhite, so convert it to celcius and collect the data.

setChartLibrary('google-chart');
setChartTitle('Your Graph Title');
setChartType('lineGraph');
mul(0.0977);
setAxisName('time_stamp','temp');
plotChart('time_stamp','temp');

** Just type the above code you may forget to convert to convert to celcius “mul(0.0977)”**
check with this code ,surely you will get the exact temperature

1 Like

Hey @ashu.vampire13 ,
In LM35, the voltage and temperature are directly proportinal to each other(If temperature increases voltage increases and vice versa.)
So the output from LM35 is obtained in volts.To convert this in to Celcius we just multiply the value of voltage with 0.0977.This gives us the temperature in celcius.
For the coding stuff,the code mentioned by @ediljeberson can be used .
Hope this gave you and insight about LM35 and why the 0.0977 integer is used.
Cheers!

1 Like