LM35 is a Temperature sensor, whose output voltage changes, based on the surrounding temperature. It is a small and inexpensive IC that can be used to measure temperatures between -55 °C to 150 °C. It can easily connect with any Microcontroller that has AC/DC function or with Arduino.
Lm35 IC regulates voltage like +5V to the input pin and connected the ground pin to the ground of the circuit to measure the temperate in the form of voltage.
Pin 1 receives a positive DC voltage typically 5 volts. Pin 3 is the ground that receives the ground or negative current. Pin 2 is the output of the IC that is used to get output from the temperature sensor.
The LM35 sensor is linear i.e. 10mv/°C which means that every degree rises in temperature by 10mv. In this way, if the output of the LM35 sensor is 220mv/0.22V the temperature will be 22 °C. If the room temperature is 32 °C then the output of the sensor will be 320mv i.e. 0.32V.
If you want to read the degree Fahrenheit then use the LM34 Temperature sensor. It is the same as LM35 but its electrical output is proportional to Degrees Fahrenheit. LM34 has also same pins configuration and the same voltage range same like lm35.