Arduino Project

Arduino Temperature and Humidity Monitor with DHT11 V3

Course Introduction

This Arduino project uses a DHT11 sensor, a 16×2 I2C LCD, LEDs, and a buzzer to monitor temperature and humidity in real time. It indicates comfort levels with different buzzer patterns, while continuously updating readings on the display.

Note

If this is your first time working with an Arduino project, we recommend downloading and reviewing the basic materials first.

1.1 Install Arduino IDE(Important)
1.2 Introduction of Arduino IDE

Required Components

In this project, we need the following components:

SN

COMPONENT INTRODUCTION

QUANTITY

PURCHASE LINK

1

Arduino UNO R4 WIFI

1

2

USB Type-C cable

1

×

3

Breadboard

1

BUY

4

Wires

Several

5

DHT-11 Module

1

6

I2C LCD 1602

1

7

Buzzer Modudle

1

Wiring

2.png__PID:ddb20af0-325d-49c2-a9da-998ebad59374

Common Connections:

DHT-11 Module
OUT:
Connect to 12 on the Arduino.
-: Connect to breadboard’s negative power bus.
+: Connect to breadboard’s red power bus.

I2C LCD 1602
SDA: Connect to A4 on the Arduino.
SCL: Connect to A5 on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.

Buzzer Modudle
I/O:
Connect to 10 on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.

Writing the Code

Note
Before you begin, you need to upload the pitches.h library to your Arduino. Copy the contents of the library into the Arduino IDE, save it as pitches.h and then upload it to your Arduino.

Note
You can copy this code into Arduino IDE.
To install the library, use the Arduino Library Manager and search for DHT , LiquidCrystal_I2C and install it.
Don’t forget to select the board(Arduino UNO R4 Minima) and the correct port before clicking the Upload button.