AM2301 (DHT21) wired temperature + humidity with ESP32

Supply 3.3-5 V Bus ONEWIRE Measures temperature, humidity
VCCGNDDATA

Pins and ESP32 wiring

PinRoleESP32 pinNotes
VCCPower3V3Red wire
GNDGroundGNDBlack wire
DATAOne-wire dataD25Yellow wire. Add a 4.7 to 10 kΩ pull-up to 3.3 V if readings fail

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.