Temperature Sensor Project using Arduino
Introduction
This project demonstrates the use of a temperature sensor with an Arduino board to monitor
ambient temperature. The system uses an LM35 sensor to read temperature data and displays it on
an LCD screen or serial monitor.
Page 1
Temperature Sensor Project using Arduino
Components Required
- Arduino Uno
- LM35 Temperature Sensor
- 16x2 LCD Display or Serial Monitor
- Breadboard and Jumper Wires
- 10k Potentiometer (for LCD Contrast)
- USB Cable for Programming
Page 2
Temperature Sensor Project using Arduino
Circuit Diagram
The LM35 sensor has three pins: VCC, GND, and Output. Connect VCC to 5V on Arduino, GND to
GND, and Output to A0 (analog pin). The LCD is connected as per the 16x2 configuration.
Page 3
Temperature Sensor Project using Arduino
Working Principle
The LM35 sensor provides an analog voltage output proportional to the temperature. Arduino reads
this voltage using its analog input pin and converts it to Celsius using a simple formula.
Page 4
Temperature Sensor Project using Arduino
Arduino Code
void setup() {
Serial.begin(9600);
void loop() {
int reading = analogRead(A0);
float voltage = reading * 5.0 / 1024;
float temperatureC = voltage * 100;
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.println(" °C");
delay(1000);
Page 5
Temperature Sensor Project using Arduino
Applications
1. Home automation
2. Weather stations
3. Industrial monitoring
4. IoT-based temperature logging
Page 6
Temperature Sensor Project using Arduino
Conclusion
This project introduces the basics of using sensors with Arduino. The LM35 sensor is an effective
and affordable way to measure temperature in real-time.
Page 7