Get temperature value in degree celsius

To get temperature value in degree celsius

LM 35 connected to Arduino and bolt wifi module connected to Arduino through serial communication

setChartLibrary(‘google-chart’);
setChartTitle(‘SMART POLY HOUSE’);
var lineGraph1 = new boltGraph();
lineGraph1.setChartType(“lineGraph”);
lineGraph1.setAxisName(‘Time’,‘SOIL MOISTURE’);
lineGraph1.plotChart(‘time_stamp’,‘moisture’);
var lineGraph2 = new boltGraph();
lineGraph2.setChartType(“lineGraph”);
lineGraph2.setAxisName(‘Time’,‘HUMIDITY’);
lineGraph2.plotChart(‘time_stamp’,‘humidity’);
var lineGraph2 = new boltGraph();
lineGraph2.setChartType(“lineGraph”);
lineGraph2.setAxisName(‘Time’,‘LDR LIGHT’);
lineGraph2.plotChart(‘time_stamp’,‘ldr_sensor’);
var lineGraph2 = new boltGraph();
lineGraph2.setChartType(“lineGraph”);
lineGraph2.setAxisName(‘Time’,‘TEMPERTURE’);
lineGraph2.plotChart(‘time_stamp’,‘temp’);
var lineGraph2 = new boltGraph();
lineGraph2.setChartType(“lineGraph”);
lineGraph2.setAxisName(‘Time’,‘WATER LEVEL’);
lineGraph2.plotChart(‘time_stamp’,‘waterlevel’);
var lineGraph2 = new boltGraph();
lineGraph2.setChartType(“lineGraph”);
lineGraph2.setAxisName(‘Time’,‘SECURITY’);
lineGraph2.plotChart(‘time_stamp’,‘ir_sensor’);

Add this piece of thing to your code.
mul(0.0977);

The LM35 sensor gives the output as raw temperature reading. We can convert the same into temperature in degree Celsius using the below formula:
Temperature in degree Celsius= Sensor output / 10.24 = 0.0977*Sensor output.
This gives us the preferred result. So, in the code include mul(0.0977) .What this does is that it multiplies 0.0977 with final output value and now the Temperature reading will be in degree Celsius.