Tag Archives: ESP32

ESP32: DHT11/22 Humidity Temperature Sensor Interfacing Example

In this tutorial we are interfacing DHT11 or DHT22 Humidity temperature sensor with ESP32 DevKit.

The DHT11 (or DHT22 and similar) are cheap temperature and humidity sensors. The communicate with a ESP32 is over a single wire, but unfortunately it is not compatible with the 1-Wire protocol defined by Dallas Semiconductors.

The electric connection to the ESP32 DevKit is very simple, as the DHT series can be powered direct with 3.3V. Only 3 wires are needed: VCC, GND and the data line. Data Line is connected to GPIO15 (D15).

Continue reading ESP32: DHT11/22 Humidity Temperature Sensor Interfacing Example

ESP32 OLED Library Display Example

This tutorial demonstrate how to use 0.96″ small I2C based Display with ESP32 DevKit using only two IO lines. Interfacing of large 16×2 LCD is difficult with ESP32, as it requires 6 IO Lines. This is shown in this post How to Interface 16×2 LCD with NodeMCU ESP8266 with only three wires?

Components Required

  1. OLED Display 0.96″ Four Wire I2C Type Display
  2. DevKit ESP32
  3. Connecting Wires
  4. USB Cable and Laptop

Continue reading ESP32 OLED Library Display Example

Connecting ESP32 to WiFi Network

Connecting ESP32 to WiFi is first step when using ESP32. In all projects of ESP32 Connecting to WiFi and then accessing other thing is must. ESP32 can operate in three different modes: Wi-Fi station, Wi-Fi access point, and both at the same time. Let’s Connect ESP32 DevKit to WiFi.

Things you’ll need

  • ESP32 DevKit
  • A WiFi router/modem, or You can use your mobile hot spot.
  • Your WiFi network name (SSID) and password (WPA). If you need to set up, check or change the WiFi network name or password, you’ll need to check your modem’s setup guide or user manual for instructions on how to do this.
  • A computer, laptop or other device with a built-in WiFi adapter or a plugin USB WiFi adapter.

Continue reading Connecting ESP32 to WiFi Network

ESP32 Internal Temperature Sensor Example

ESP32 has on chip temperature sensor, This sensor is not usable to monitor external temperature, It is used to monitor its core temperature. In this tutorial we are monitoring on chip temperature sensor data.

ESP32 Internal Temperature Sensor

Arduino Code for ESP32 Internal Temperature Sensor


Open Serial monitor at baud rate of 115200 and see the temperature of chip.

ESP32 Internal Hall Sensor Example

ESP32 comes with in build hall sensor, this sensor can be used to detect presence of magnet, Like door sensor. In this tutorial we will see how to read its value and detect presence of magnet.

A Hall effect sensor is a transducer that varies its output voltage in response to a magnetic field. Hall effect sensors are used for proximity sensing, positioning, speed detection, and current sensing applications.[1]

ESP32 Internal Hall Effect Sensor

Continue reading ESP32 Internal Hall Sensor Example