LM35 is a precision IC temperature sensor with its output proportional to the temperature ,The sensor circuitry is sealed and therefore it is not subjected to oxidation and other processes. With LM35, temperature can be measured more accurately than with a thermistor. It also possess low self heating and does not cause more than 0.1 oC. temperature rise in still air. The operating temperature range is from -55°C to 150°C. The output voltage varies by 10mV in response to every oC. rise/fall in ambient temperature, i.e., its scale factor is 0.01V/ oC.
PROGRAMME
// http://electronicshobbycorner.blogspot.in
// Rajeev TR
// rajeev.emb402@gmail.com
// PROGRAM TO INTERFACE LM35 WITH ARDUINO
float temp;
int tempPin = 0; //LM35 sensor pin in A0
void setup()
{
Serial.begin(9600); //Initilize serialport
}
void loop()
{
temp = analogRead(tempPin);
temp = temp * 0.48828125; //Calculating temprature
Serial.print("TEMPRATURE = ");
Serial.print(temp); //Print temprature
Serial.print("*C");
Serial.println();
delay(1000);
}
Download datasheet
here
Download code
here