Arduino Project

Arduino Temperature and Humidity Monitor with DHT11 V1

Course Introduction

This Arduino project uses a DHT11 sensor and an OLED display to monitor and display real-time temperature and humidity.

The data is updated every 0.5 seconds and shown clearly on a 128x64 I2C OLED screen. If sensor readings fail, an error message is displayed.

This setup is ideal for simple environmental monitoring applications.

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

OLED Display Module

1

Wiring

1.webp__PID:9fb7a777-4a35-4c7a-bb31-d63db50ecc70

Common Connections:

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

OLED Display Module
SDA:
Connect to SDA on the Arduino.
SCK: Connect to SCL on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.

Writing the Code

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