Temperature sensing using a LM35 sensor