DHT11 temperature + humidity with ESP32
Supply 3.3-5 V
Bus ONEWIRE
Measures temperature, humidity
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VCC | Power | 3V3 | |
| DATA | One-wire data | D25 | Needs a 10 kΩ pull-up (already on 3-pin modules; 3-pin module order varies, read the labels) |
| NC | Not wired to the ESP32 | — | Not connected |
| GND | Ground | GND |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- Aosong DHT11 datasheet, Pin 1 VDD, 2 DATA, 3 NC, 4 GND; 5 kΩ to 10 kΩ pull-up on DATA
- Aosong DHT11 datasheet, Supply 3 to 5.5 V
Try it in 3D in BoardPilot
Related parts
AM2301 (DHT21) wired temperature + humidityDHT22 (AM2302) temperature + humidityDS18B20 module (KY-001 style)DS18B20 temperature sensor (TO-92)DS18B20 waterproof temperature probe
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.