Room Temperature Monitor

Published: January 15, 2026

A simple room temperature and humidity monitor that uses the DHT11 sensor to measure environmental conditions and display live readings on an LCD1602 screen.


📸 Preview

Room Temperature Monitor Thumbnail

⚙️ How It Works:

📦 Components Used:

ComponentPurpose
Arduino UNOMain controller
DHT11 SensorMeasures temperature and humidity
LCD1602 (16-pin)Displays live readings
10k PotentiometerAdjusts LCD contrast
Breadboard + jumper wiresConnections

🔌 Wiring Instructions

🟦 DHT11 Sensor

DHT11 PinConnect to Arduino
VCC5V
DATAD10
GNDGND

🟩 LCD1602 (16-pin)

LCD PinLabelConnect to Arduino
1GNDGND
2VCC5V
3VOMiddle pin of 10k pot
4RSD7
5RWGND
6ED6
11D4D5
12D5D4
13D6D3
14D7D2
15A5V
16KGND

Potentiometer: One side → GND, Other side → 5V, Middle pin → LCD pin 3 (VO)


🧾 Arduino Code


    #include 
    #include "dht_nonblocking.h"

    #define DHT_SENSOR_TYPE DHT_TYPE_11
    static const int DHT_SENSOR_PIN = 10;

    DHT_nonblocking dht_sensor(DHT_SENSOR_PIN, DHT_SENSOR_TYPE);

    // LCD: RS, E, D4, D5, D6, D7
    LiquidCrystal lcd(7, 6, 5, 4, 3, 2);

    void setup() {
    lcd.begin(16, 2);
    lcd.setCursor(0, 0);
    lcd.print("Temp & Humidity");
    delay(2000);
    lcd.clear();
    }

    void loop() {
    float temperature;
    float humidity;

    if (dht_sensor.measure(&temperature, &humidity)) {
        lcd.setCursor(0, 0);
        lcd.print("Temp: ");
        lcd.print(temperature);
        lcd.print((char)223);
        lcd.print("C   ");

        lcd.setCursor(0, 1);
        lcd.print("Humidity: ");
        lcd.print(humidity);
        lcd.print("%   ");
    }

    delay(1000);
    }
        

📦 Installing the Required Libraries

1️⃣ LiquidCrystal

This library comes pre-installed with Arduino IDE. No action needed.

2️⃣ DHT_nonblocking Library

  1. Open Arduino IDE
  2. Go to Sketch → Include Library → Manage Libraries…
  3. Search for DHT sensor library (non-blocking)
  4. Click Install

ZIP Install: Use Sketch → Include Library → Add .ZIP Library… if you downloaded the file manually.

🚀 Uploading the Code

← Back to Projects