YANTRONIX
YANTRONIX
0
YANTRONIX
YANTRONIX

Smart Temperature Detection System with LCD Display using Arduino

17.10.25 07:28 AM By Sanskar Chaturvedi

Smart Temperature Detection System with LCD Display using Arduino

Objective:

To design a smart temperature monitoring system that measures real-time temperature using a digital sensor and displays it on an LCD screen. The system can also trigger alerts if the temperature exceeds a set threshold.


Components Required:

  1. Arduino Uno – Main microcontroller board

  2. LM35 / DHT11 / DS18B20 Temperature Sensor – For temperature measurement

  3. 16x2 LCD Display – To show temperature readings

  4. 10kΩ Potentiometer – For LCD contrast adjustment

  5. Buzzer (optional) – For over-temperature alert

  6. LED (optional) – To indicate high temperature

  7. Jumper Wires

  8. Breadboard

  9. USB Cable – For power and programming


Circuit Connections:

If using LM35 Sensor:

  • Vout → Arduino A0

  • VCC → Arduino 5V

  • GND → Arduino GND

LCD Display (16x2) Connections:

LCD PinArduino Pin
VSSGND
VDD5V
V0Middle pin of Potentiometer
RS12
RWGND
E11
D45
D54
D63
D72
A (LED+)5V (through 220Ω resistor)
K (LED−)GND

Working Principle:

  1. The LM35 sensor senses the surrounding temperature and provides an analog output proportional to the temperature.

  2. Arduino reads this analog voltage from the sensor.

  3. The voltage is converted into temperature in °C using the formula:

    Temperature(°C)= (analogValue∗5.0∗100)/1024
  4. The measured temperature is displayed on the LCD screen.

  5. If the temperature exceeds the threshold (say 35°C), the buzzer or LED turns ON to indicate a high temperature.

Arduino Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);  // LCD pin configuration
int sensorPin = A0;  // LM35 connected to A0
int buzzer = 8;      // Buzzer or LED
float tempC;
void setup() {
  lcd.begin(16, 2);          // Initialize LCD
  pinMode(buzzer, OUTPUT);   // Set buzzer pin as output
  lcd.print("Temp Monitor");
  delay(2000);
  lcd.clear();
}
void loop() {
  int sensorValue = analogRead(sensorPin);
  tempC = (sensorValue * 5.0 * 100) / 1024.0; // Convert to Celsius
  lcd.setCursor(0, 0);
  lcd.print("Temp: ");
  lcd.print(tempC);
  lcd.print(" C   ");
  if (tempC > 35.0) {
    digitalWrite(buzzer, HIGH);
    lcd.setCursor(0, 1);
    lcd.print("HIGH TEMP ALERT!");
  } else {
    digitalWrite(buzzer, LOW);
    lcd.setCursor(0, 1);
    lcd.print("Status: Normal  ");
  }
  delay(1000);
}


Sanskar Chaturvedi

Items have been added to cart.
One or more items could not be added to cart due to certain restrictions.
Quantity updated
- An error occurred. Please try again later.
Deleted from cart
- Can't delete this product from the cart at the moment. Please try again later.