Predicting temperature using polynomial regression

in the code for predicting the temperature using polynomial regression what is ‘mul(0.097)’…?

1 Like

‘mul(0.097)’ is used to multiply all the readings of the LM35 sensor by 0.097 to convert them into degree celsius scale(Instead of dividing by 10.24, here they are being multiplied by 0.097, which is basically the same thing).

1 Like

LM35 turns the temperature to output voltage. So according to the data sheet available from Texas Instrument website , it output data has to be divided by 10.24 to calibrate it to centigrade unit. It has an accuracy of ± 1C. Thus we multiply 0.097=1/10.24 .

1 Like