Free tools Windows power users keep installed
One-click scans. No signup required.
Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
This project builds a local temperature-and-humidity monitor—not a networked weather station. It uses an Arduino UNO R4 WiFi, a DHT11 sensor, and a 0.96-inch SSD1306 OLED to refresh readings approximately every two seconds. The board has Wi-Fi hardware, but the published sketch does not connect to a router, cloud service, phone, or web server.
The original project is listed as “Arduino (UNO) EK Wi-Fi”; the intended board appears to be the Arduino UNO R4 WiFi. Do not confuse it with the separate Arduino UNO WiFi Rev2.
What you will build
The finished device measures:
- Temperature in degrees Celsius
- Relative humidity as a percentage
It shows both values on an OLED and prints them to the Arduino IDE Serial Monitor. In this context, “real-time” means periodic polling, not guaranteed real-time instrumentation: the program takes a new reading about every two seconds, and indoor temperature and humidity may change much more slowly.
It is best described as a room climate monitor or starter weather-station project. It does not measure air pressure, wind, rain, solar radiation, air quality, or forecasts.
#1 Best Overall
- All-in-One Starter Kit for Arduino Beginners: The Kit features the original Arduino Uno R4 WiFi board, 300+ high-quality components, and 60+ free video lessons co-created with educator Paul McWhorter. With over 50 projects (30 basic, 13 fun, and 8 IoT), it's perfect for beginners aged 8+ to explore Arduino. Certified RoHS compliant, it ensures safety and quality for all learners.
- Powerful Arduino Uno R4 WiFi Board: Upgraded from the Arduino Uno R3, the Arduino Uno R4 WiFi features a 32-bit processor, more memory, and built-in WiFi and Bluetooth, enabling connection to third-party apps for more interactive and practical projects.
- 300+ Components for Endless Possibilities: With 300+ components and sensors, this kit is perfect for portable projects. It features step-by-step tutorials, open-source code, and compatibility with other Arduino boards like Uno R3 and Nano, offering endless customization and learning opportunities.
- Engaging Projects for Every Skill Level: Featuring 50 projects (30 basic, 13 fun, 8 IoT) with IoT app integration like Arduino IoT Cloud , this kit supports Arduino C++ programming, making it perfect for students, teachers, and engineers to learn, code, and create at any skill level.
- Dedicated Support for Beginners: Alongside online resources and video tutorials, SunFounder provides technical support and troubleshooting forums to help beginners solve programming challenges with ease.
The source project and its original implementation are available on Hackster.io.
Parts required
| Part | Quantity | Purpose |
|---|---|---|
| Arduino UNO R4 WiFi | 1 | Microcontroller and possible future wireless connection |
| DHT11 sensor, preferably a three-pin module | 1 | Temperature and relative-humidity measurement |
| 0.96-inch 128×64 SSD1306 OLED | 1 | Local display |
| Breadboard | 1 | Temporary assembly |
| Jumper wires | As needed | Electrical connections |
| USB cable and computer | 1 each | Power, programming, and Serial Monitor output |
Check the labels and voltage requirements printed on your particular OLED module. Many modules use I²C address 0x3C, but some use 0x3D. A bare four-pin DHT11 may also need an external pull-up resistor on its data line; many three-pin breakout boards include one.
Wiring
DHT11 connections
| DHT11 pin | UNO R4 WiFi |
|---|---|
| VCC | 5V |
| GND | GND |
| DATA | D7 |
OLED I²C connections
| OLED pin | UNO R4 WiFi |
|---|---|
| VCC | 5V, if supported by your module |
| GND | GND |
| SDA | A4/SDA |
| SCL | A5/SCL |
Confirm the OLED’s actual pin labels before applying power. Some displays are SPI rather than I²C even when they look similar, and not every module has the same voltage requirements.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesRank #2
- ELEGOO UNO R4 WiFi Control Board: Fully compatible with Arduino IDE and original Arduino shields. Features a 32-bit 48 MHz Renesas RA4M1 processor, USB-C, a 12 × 8 LED matrix, a Qwiic connector, built-in Wi-Fi and Bluetooth connectivity. Suitable for interactive STEM projects, it gives learners more room to progress from basic circuits to connected IoT projects
- Step-by-Step Tutorials for Beginners: Start with clear wiring diagrams and ready-to-run sample code, then advance through sensors, displays, motors, RFID, and wireless projects. Structured lessons reduce setup confusion and help beginners understand both how each circuit works and how to modify it
- 200+ Components with Practical Modules: Ultrasonic sensor, PIR motion sensor, RFID module, OLED display, keypad, joystick, relay, servo, stepper motor, DC motor and fan blade, temperature and humidity sensor, breadboard, jumper wires, LEDs, resistors, and more. Also compatible with your existing UNO R3 shields and projects
- Build Projects You Can Recognize: Equipped with professional online tutorials and step-by-step graphical manuals. Suitable for teens, beginners, hobbyists, educators, engineering students and electronics enthusiasts. The included parts support a progressive path from first coding exercises to maker prototypes without purchasing every module separately
- Organized Parts and Reliable Support: Each kit includes clearly listed components and beginner-friendly project resources to help users identify parts and start faster. ELEGOO provides responsive technical support for setup, programming, wiring and troubleshooting, ensuring you have a smooth learning experience
Arduino IDE setup
- Install or open the Arduino IDE.
- Select Tools → Board → Arduino UNO R4 WiFi. Do not select UNO R3, UNO WiFi Rev2, or an ESP8266 board.
- Open Tools → Manage Libraries.
- Install Adafruit GFX Library.
- Install Adafruit SSD1306.
- Install DHT sensor library.
- Compile the sketch before uploading it.
- Upload it to the board, then open Tools → Serial Monitor and choose 9600 baud.
The UNO R4 WiFi combines a Renesas RA4M1 microcontroller with an ESP32-S3 wireless module. Its Wi-Fi and Bluetooth capabilities are available for later expansion, but simply selecting the board does not transmit this project’s readings. See the official board documentation.
Complete revised sketch
This version keeps the project’s wiring and sensor choices, but removes author-specific splash text, reports OLED errors, and uses millis() instead of blocking the main loop for two seconds.
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <DHT.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
#define OLED_ADDRESS 0x3C
#define DHT_PIN 7
#define DHT_TYPE DHT11
Adafruit_SSD1306 display(
SCREEN_WIDTH,
SCREEN_HEIGHT,
&Wire,
OLED_RESET
);
DHT dht(DHT_PIN, DHT_TYPE);
unsigned long lastRead = 0;
const unsigned long readInterval = 2000;
void setup() {
Serial.begin(9600);
if (!display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDRESS)) {
Serial.println("OLED initialization failed.");
while (true) {
delay(1000);
}
}
display.clearDisplay();
display.setTextColor(SSD1306_WHITE);
display.setTextSize(1);
display.setCursor(0, 0);
display.println("Weather Monitor");
display.println("Starting...");
display.display();
dht.begin();
delay(2000);
}
void loop() {
if (millis() - lastRead < readInterval) {
return;
}
lastRead = millis();
float humidity = dht.readHumidity();
float temperature = dht.readTemperature();
if (isnan(humidity) || isnan(temperature)) {
Serial.println("DHT11 read failed.");
display.clearDisplay();
display.setTextSize(1);
display.setCursor(0, 0);
display.println("Sensor error");
display.println("Check DHT11 wiring");
display.display();
return;
}
Serial.print("Temperature: ");
Serial.print(temperature, 1);
Serial.println(" C");
Serial.print("Humidity: ");
Serial.print(humidity, 1);
Serial.println(" %");
display.clearDisplay();
display.setTextSize(2);
display.setCursor(0, 0);
display.print("T:");
display.print(temperature, 1);
display.println(" C");
display.setCursor(0, 32);
display.print("H:");
display.print(humidity, 1);
display.println(" %");
display.display();
}
How the sketch works
Adafruit_SSD1306controls the 128×64 OLED over I²C.DHT(7, DHT11)tells the library that the sensor data line is connected to D7.dht.readHumidity()anddht.readTemperature()obtain the sensor values.isnan()rejects invalid readings instead of displaying misleading numbers.- The OLED is cleared and redrawn after every successful measurement.
- The two-second interval avoids reading the DHT11 too frequently.
The original sketch also displayed “DHT READING” and “ROHAN BARNWAL” during startup. Those messages are optional and have no effect on measurement.
Rank #3
- Dual-Core Processing with Renesas RA4M1 and ESP32-S3: The Arduino UNO R4 WiFi combines the Renesas RA4M1 microcontroller (ARM Cortex-M4) and the ESP32-S3 Wi-Fi/Bluetooth chip, delivering powerful dual-core processing capabilities. This combination offers flexibility for a wide range of projects, from high-speed communications and wireless control to real-time data processing and edge AI applications.
- Comprehensive Wireless Connectivity: Equipped with Wi-Fi and Bluetooth 5.0, the UNO R4 WiFi ensures robust wireless communication for IoT projects, remote sensors, smart devices, and wireless control applications. Whether connecting to the cloud, other devices, or local networks, the board offers stable and high-speed wireless connectivity for seamless operation.
- Modern USB-C, CAN, & Qwiic Connector: The USB-C port enables efficient power delivery and fast programming, improving ease of use compared to traditional USB connections. The Controller Area Network (CAN) support allows for reliable, real-time communication in industrial, automotive, or robotic systems. Additionally, the Qwiic Connector makes it easy to add I2C sensors and peripherals, simplifying the connection process and reducing the need for complex wiring.
- High-Precision 12-bit DAC & OP-AMP: For projects that require high-quality analog output, the 12-bit DAC (Digital-to-Analog Converter) and integrated operational amplifier (OP-AMP) provide precise analog signal generation and amplification. This feature is ideal for audio projects, sensor interfacing, or applications where analog signal control and processing are necessary.
- Integrated 12x8 LED Matrix: The UNO R4 WiFi includes a built-in 12x8 LED Matrix, enabling users to display dynamic visuals, messages, or real-time data on the board itself. This makes it perfect for projects that require immediate visual feedback, such as status indicators, event displays, or interactive user interfaces.
Build and test procedure
- Place the UNO R4 WiFi, DHT11 module, and OLED on the breadboard.
- Wire the DHT11 data pin to D7.
- Wire the OLED to 5V, GND, A4/SDA, and A5/SCL, observing the module’s requirements.
- Install the three libraries and select Arduino UNO R4 WiFi.
- Compile and upload the sketch.
- Open Serial Monitor at 9600 baud.
- Wait for the startup message and the first valid sensor reading.
- Confirm that the OLED shows temperature and humidity and that matching values appear in the Serial Monitor.
Do not expect visible changes every two seconds. Temperature and humidity usually change gradually, and the DHT11 is a basic sensor. Let the sensor settle before judging the readings, then compare them with a known thermometer or hygrometer if necessary.
Troubleshooting
The OLED is blank
- Check VCC and GND.
- Confirm that SDA and SCL are not reversed.
- Try changing
OLED_ADDRESSfrom0x3Cto0x3D. - Confirm that the display is I²C, SSD1306-compatible, and 128×64.
- Run an I²C scanner to discover the address.
- Test an Adafruit SSD1306 example before adding the DHT11.
“OLED initialization failed” appears
This indicates a display initialization, address, wiring, compatibility, or library problem. It is not normally caused by the DHT11. Check the display independently and verify the selected board and installed library.
DHT11 readings fail
- Verify that DATA is connected to D7.
- Check the sensor’s orientation and pin order.
- Make sure the code says
#define DHT_TYPE DHT11. - Inspect breadboard connections and the common ground.
- Add a pull-up resistor if using a bare sensor rather than a module.
- Do not reduce the reading interval excessively.
If you replace the DHT11 with a DHT22, change the type definition to #define DHT_TYPE DHT22, but verify the replacement module’s wiring and operating requirements rather than assuming it is a guaranteed drop-in substitute.
Rank #4
- LEARN ELECTRONICS AND CODING FROM SCRATCH: Start your maker journey or enhance classroom learning with the Arduino Starter Kit R4 – no prior experience required. Includes a printed project book and all components for 13 hands-on tutorials, as well as access to a growing repository of projects that will be added over time.
- POWERED BY THE ARDUINO UNO R4 WIFI BOARD: Discover modern connectivity and performance with the Arduino UNO R4 WiFi, featuring built-in Wi-Fi and Bluetooth and full compatibility with the Arduino ecosystem.
- CERTIFICATION VOUCHER INCLUDED: Once you’ve mastered sensors, motors, displays, and logic through the projects, take the official Arduino Fundamentals certification exam with the voucher that comes with your kit.
- BONUS DIGITAL RESOURCES: Register your kit online to unlock extra projects, multilingual lessons (Italian, German, French), and exclusive online content designed by the Arduino team.
- DESIGNED FOR LEARNING AND TEACHING: Ideal for classrooms, labs, or self-learners. Combine hands-on experiments with clear explanations and an AI coding assistant to support you as you grow.
Why the Wi-Fi label is misleading
The UNO R4 WiFi is genuinely wireless-capable, but this sketch contains no Wi-Fi initialization, credentials, router connection, HTTP request, MQTT client, web server, Arduino Cloud variables, or phone integration. Installing the board package alone will not make the readings remote.
To create a connected version, you would need to add:
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →- Network credentials stored securely rather than published in shared code
- Connection and reconnection handling
- A destination such as Arduino Cloud, an HTTP endpoint, MQTT broker, or local web server
- Authentication and sensible failure behavior when the network is unavailable
- Timestamps and a data-retention strategy
Arduino Cloud is one possible extension, but it is not required for the local OLED project. Plan limits, prices, and features can change, so check the current plans before choosing it.
Best Value
- Super Starter Kit : The Kit Has 300+ High-quality Components,Such as Atmospheric Pressure/Acceleration/Angle Expensive Sensor.Exclusive R4 Video Course (9+ lessons) , Software code, Libraries, Datasheets in CD. It's Perfect for Beginners Aged 8+ to Explore Arduino.
- Latest UNO WiFi Board: Uno R4 WiFi Board Upgraded from the Uno R3. Double 32-bit Processor, more Advanced, and Built-in WiFi and Bluetooth, Enabling Connection to Third-party Apps. Satisfy remote IoT control.
- Exclusive Tutorials: Include How Load UNO R3 Compatible Program(UNO R4 and UNO R3 Board is PIN TO PIN). Add Using Arduino IoT Remote App Connect Arduino Cloud Control UNO R4 Board.So the UNO R4 Board can Completely Replace the Classic R3 and Achieve the Latest Internet of Things.
- Mail Q&A technical Support:Stadamax Provides Technical Support to Help Beginners Solve Programming Challenges with Ease.Addressing Pain Points that are Difficult to Learn without Technical Support.Let Beginners Avoid Detours.
- A Great Gift: Full of Positive Energy can be Used for a Long Time to Learn Knowledge,excellent circuit board for kids during Father's Day and Children's Day Halloween and Christmas.
Choosing the right hardware
UNO R4 WiFi versus a classic UNO with ESP8266
The UNO R4 WiFi is the simpler starting point when you want the UNO form factor and integrated wireless hardware. A classic UNO paired with an ESP8266 can also connect to the internet, but it adds wiring, power, serial-communication, and sometimes voltage-level complications. Older ESP8266 tutorials may also depend on outdated services or libraries.
If you only need a wired OLED display and already own a classic UNO, the R4 WiFi’s wireless hardware is unnecessary. If you expect to add remote monitoring later, the R4 WiFi gives you a cleaner upgrade path.
DHT11 alternatives
- DHT11: Low-cost and easy to demonstrate, but basic.
- DHT22: A possible upgrade when you need a broader usable range or finer readings.
- AHT20: A modern digital temperature-and-humidity option.
- BME280: Adds atmospheric pressure, making the project more weather-station-like.
- Modulino Thermo: An Arduino-oriented temperature-and-humidity module documented for compatible Arduino boards; see the official documentation.
For a genuinely broader weather station, add a pressure sensor, anemometer, rain gauge, data logging, timestamps, and a properly shielded outdoor enclosure. Sensor placement matters: direct sun, rain, enclosure heat, and poor airflow can make otherwise functioning sensors produce unrepresentative readings.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWhat this project is—and is not
This is an excellent beginner electronics project because it teaches breadboard wiring, I²C displays, digital sensors, library installation, serial debugging, and basic error handling. It is not a meteorological instrument and it is not yet an IoT device.
For the original local monitor, buy only the UNO R4 WiFi, DHT11, OLED, breadboard, and wiring you need. Add cloud services or more advanced sensors only when remote access, pressure, logging, or outdoor measurements are actual requirements.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

