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
Wiring

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.
