An Temperature Sensor is a three terminal integrated circuit
temperature transducer that produces an output current proportional to absolute
temperature. LM35emperature Sensor is a high precision temperature sensor. It has a analog output, which is linearly proportional to the surrounding temperature. Just hook it up to a ADC pin on microcontroller to get temperature readings.