Free delivery on orders over EGP 2,000 · Cash on delivery across EgyptDetails

esp32iottutorial

Getting started with the ESP32: your first Wi-Fi sensor

Set up the Arduino IDE, wire a DHT22 and publish live temperature to your phone — in under an hour.

The ESP32 is the most popular board in our shop for a reason: two fast cores, Wi-Fi and Bluetooth for the price of a meal. In this tutorial you will build a small web server that shows the temperature and humidity in your room.

What you need

  • ESP32 DevKit V1
  • DHT22 sensor
  • Breadboard and jumper wires

1. Install the board package

In the Arduino IDE open Settings → Additional boards manager URLs and add Espressif’s package URL, then install esp32 from the Boards Manager.

2. Wire the sensor

Connect DHT22 VCC to 3V3, GND to GND and DATA to GPIO 4.

#include <WiFi.h>
#include <DHT.h>
DHT dht(4, DHT22);

3. Upload and open the page

Open the Serial Monitor to find the board’s IP address, then visit it from any phone on the same Wi-Fi.

Tip: if upload fails, hold the BOOT button while the IDE says “Connecting…”.

Parts used in this article

Everything you need, in stock and ready to ship.

Getting started with the ESP32: your first Wi-Fi sensor | Circuitopia Electronics