Jobin J Jose
Published

TempLCD — Temperature Display on LCD

Monitoring temperature using Arduino

BeginnerShowcase (no instructions)3 hours9
TempLCD — Temperature Display on LCD

Things used in this project

Story

Read more

Schematics

Circuit Diagram

Code

Arduino Code

C/C++
#include <LiquidCrystal.h>

LiquidCrystal lcd(7, 6, 5, 4, 3, 2);

void setup() {
  lcd.begin(16, 2);
  lcd.print("TempLCD Ready");
  delay(2000);
  lcd.clear();
}

void loop() {
  int reading = analogRead(A0);
  float voltage = reading * (5.0 / 1023.0);
  float tempC = voltage * 100; // LM35 conversion

  lcd.setCursor(0, 0);
  lcd.print("Temp: ");
  lcd.print(tempC);
  lcd.print(" C   ");

  delay(1000);
}

Credits

Jobin J Jose
11 projects • 1 follower

Comments