Project Name: Interfacing of Temperature Sensor (LM35) With Arduino Uno
Project Name: Interfacing of Temperature Sensor (LM35) With Arduino Uno
Description: In this tutorial we will learn how to interface a Temperature Sensor with the Arduino Uno.
LM35 is a precision temperature sensor with its output proportional to the temperature (in C). 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 C 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
ambient temperature; its scale factor is 0.01V/ C.
Material Required:
Material Quantity
Arduino Uno 1
Temperature Sensor(LM35) 1
Jumper cables 4
Pinout Diagram:
Circuit Diagram:
Parameter Value
int reading;
int tempPin = 0;
void setup()
analogReference(INTERNAL);
Serial.begin(9600);
void loop()
reading = analogRead(tempPin);
Serial.print("Temprature= ");
Serial.print(tempC);
Serial.print("*C");
Serial.println();
delay(1000);
Precautions:
5. Don’t lose hope if Temperature Sensor does not run properly for the first time, try again.
Conclusion:
Once your sketch is running, you have to open your serial monitor. There you can see the
Temperature of the surroundings.
References: http://blog.circuits4you.com/2015/05/lm35-temperature-sensor-interfacing.html
http://www.instructables.com/id/ARDUINO-TEMPERATURE-SENSOR-LM35/