added code for Temp. Sensor