Evan Rust
Published © GPL3+

Arduino LCD Thermostat

A simple, yet effective, temperature telling device that updates every 5 minutes giving you the temperature of your room!

BeginnerFull instructions provided1 hour38,805
Arduino LCD Thermostat

Things used in this project

Hardware components

DHT11 Temperature & Humidity Sensor (4 pins)
DHT11 Temperature & Humidity Sensor (4 pins)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Arduino UNO
Arduino UNO
×1
16x2 LCD
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Optional

Story

Read more

Schematics

Schematic

Attach as follows.

Code

Arduino Code

C/C++
Just copy and paste.
#include "DHT.h"
#include "LiquidCrystal.h"

#define DHTPIN 9
#define DHTTYPE DHT11

DHT dht(DHTPIN, DHTTYPE);

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // put your setup code here, to run once:
dht.begin();
lcd.begin(16,2);
lcd.print("The current temp");
lcd.setCursor(0,1);
lcd.print("is: ");
float f = dht.readTemperature(true);
lcd.setCursor(5,1);
lcd.print(f);
lcd.print(" F");
}

void loop() {
delay(1000*60*5);
// put your main code here, to run repeatedly:
float f = dht.readTemperature(true);
lcd.setCursor(5,1);
lcd.print(f);
lcd.print(" F");
}

Credits

Evan Rust

Evan Rust

122 projects • 1082 followers
IoT, web, and embedded systems enthusiast. Contact me for product reviews or custom project requests.

Comments