Introduction
In the world of electronics, temperature sensors are one of the most commonly used components. They are used in a variety of applications, including home appliances, industrial systems, and scientific instruments. The LM35 temperature sensor is one such device that is frequently used to measure temperature in electronic projects. In this project, we will use an Arduino UNO and an LM35 temperature sensor to build a digital thermometer that displays temperature readings on a 16×2 LCD display.
Hardware Required
You will require the following Hardware Components for making an Arduino thermometer using LM35 temperature.
Components | # | Buy From Amazon |
---|---|---|
Arduino UNO | 1 | Buy Now |
LM35 Temperature Sensor | 1 | Buy Now |
16×2 LCD Display Module | 1 | Buy Now |
Potentiometer 10KΩ | 1 | Buy Now |
Battery 9v | 1 | Buy Now |
Jumper Wires | Few | Buy Now |
Breadboard | 1 | Buy Now |
What is LM35 Temperature Sensor?
LM35 is a precision integrated-circuit temperature sensor that can be used to measure temperature with an accuracy of ±0.5°C at room temperature. It is a small and inexpensive device that can be easily interfaced with microcontrollers, such as Arduino, to measure temperature in various applications. The LM35 sensor converts the temperature into an analog voltage output that is proportional to the temperature, with a scale factor of 10mV per degree Celsius. The output voltage of the sensor can be directly read by a microcontroller’s analog input pin, which can then be used to calculate the temperature using a simple mathematical formula. The LM35 is a popular choice for temperature sensing applications due to its accuracy, ease of use, and low cost.
Specifications
- Operating Voltage: 4V to 30V
- Temperature range: -55°C to +150°C
- Output Voltage: 10mV/°C
- Accuracy: ±0.5°C
- Quiescent Current: Less than 60uA
- Package Type: TO-92
Features
- Easy to use
- High accuracy
- Low power consumption
- Linear output
- Calibrated in Kelvin
- Self-calibrated circuitry
Pinout
![LM35-Temperature-Pinout](http://arduinocircuit.com/wp-content/uploads/2023/03/LM35-Temperature-Pinout.webp)
Pin Configuration
Pin No | Name | Function |
1 | Vcc | Supply voltage; 5V (+35V to -2V) |
2 | Output | Output voltage (+6V to -1V) |
3 | Ground | Ground (0V) |
Circuit Diagram
The following circuit shows you the connection of the Arduino thermometer using LM35 temperature. with Arduino Please make the connection carefully
![Digital-Thermometer-using-LM35-Temperature-Sensor-Arduino-Circuit](http://arduinocircuit.com/wp-content/uploads/2023/03/Digital-Thermometer-using-LM35-Temperature-Sensor-Arduino-Circuit-1024x635.webp)
Working Explanation
The LM35 temperature sensor outputs an analog voltage that is proportional to the temperature it measures. We can use this output to determine the temperature using an Arduino. To do this, we connect the LM35 to the Arduino’s analog input pin and use the ADC (analog-to-digital converter) to read the voltage output. We then convert this value into temperature using a simple mathematical formula.
Once we have the temperature value, we can display it on the LCD display. The LCD display is connected to the Arduino using a parallel connection, and we can use the LiquidCrystal library to control the display.
Installing Arduino IDE Software
First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow
Installing Libraries
Now when you are Ready to upload the code, to the Arduino Board you will need first to add the Following Libraries in Arduino, If you Learn How to add the library in the Arduino step-by-step guide click on how to install the library Button given Blow
Code
//For more Projects: www.arduinocircuit.com
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
#define sensor A0
byte degree[8] =
{
0b00011,
0b00011,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
};
void setup()
{
lcd.begin(16,2);
lcd.createChar(1, degree);
lcd.setCursor(0,0);
lcd.print(" Digital ");
lcd.setCursor(0,1);
lcd.print(" Thermometer ");
delay(4000);
lcd.clear();
lcd.print(" Circuit Digest ");
delay(4000);
lcd.clear();
}
void loop()
{
/*---------Temperature-------*/
float reading=analogRead(sensor);
float temperature=reading*(5.0/1023.0)*100;
delay(10);
/*------Display Result------*/
lcd.clear();
lcd.setCursor(2,0);
lcd.print("Temperature");
lcd.setCursor(4,1);
lcd.print(temperature);
lcd.write(1);
lcd.print("C");
delay(1000);
}
Applications
- Home automation systems
- Industrial automation systems
- Weather monitoring systems
- Medical equipment
- Food processing and storage
- HVAC systems
- Agriculture systems
- Scientific experiments
Conclusion
The LM35 temperature sensor is a simple and effective device for measuring temperature, and it is widely used in electronic projects. This project demonstrates how to use an LM35 sensor with an Arduino to build a digital thermometer that displays temperature readings on an LCD display. This project can be easily modified to suit different temperature sensing requirements and can be used in a variety of applications, including home automation, industrial automation, and scientific experiments.
See Also