I have written a code to display a prediction graph for predicting the temperature of the room bot I am unable to understand the use of mul (0.0977). Can you explain the logic behind this.
@alok99punj
Hi,
We will need to convert the raw sensor value received from the LM35 to degrees. For this purpose, we will need to multiply the raw sensor value with 0.0977 to get the temperature in degree.
1 Like
Thanks for your help
mul() is used to convert the value that we get from the LM35 sensor.
In this we convert the value into degrees so as to convert the sensor value into degrees we multiply it with 0.0977 to get the temprature in degrees.