0% found this document useful (1 vote)
92 views4 pages

Project Name: Interfacing of Temperature Sensor (LM35) With Arduino Uno

This document describes a project to interface a temperature sensor (LM35) with an Arduino Uno board. The LM35 sensor outputs a voltage that is proportional to temperature and can accurately measure temperatures from -55°C to 150°C. The circuit connects the sensor's output to an analog pin on the Arduino. A code sample reads the sensor value, converts it to Celsius, and prints the temperature to the serial monitor every second. Once running, the serial monitor will display the ambient temperature readings.

Uploaded by

Siddhi rustagi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (1 vote)
92 views4 pages

Project Name: Interfacing of Temperature Sensor (LM35) With Arduino Uno

This document describes a project to interface a temperature sensor (LM35) with an Arduino Uno board. The LM35 sensor outputs a voltage that is proportional to temperature and can accurately measure temperatures from -55°C to 150°C. The circuit connects the sensor's output to an analog pin on the Arduino. A code sample reads the sensor value, converts it to Celsius, and prints the temperature to the serial monitor every second. Once running, the serial monitor will display the ambient temperature readings.

Uploaded by

Siddhi rustagi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

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.

What is a Temperature Sensor?

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

VCC 5 V DC from your Arduino

Ground GND from your Arduino

Out Connect to Analog Pin A0


.
Tested Programming Code:
float tempC;

int reading;

int tempPin = 0;

void setup()

analogReference(INTERNAL);

Serial.begin(9600);

void loop()

reading = analogRead(tempPin);

tempC = reading / 9.31;

Serial.print("Temprature= ");

Serial.print(tempC);

Serial.print("*C");

Serial.println();

delay(1000);

Precautions:

1. Double check the connections before powering on the circuit.

2. Don’t use loose jumper cables.

3. Check whether proper board is selected from Arduino IDE.

4. Ensure proper placement of Temperature Sensor for correct working.

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/

You might also like