DS18B20 temperature sensor (TO-92) with ESP32

Supply 3.3-5 V Bus ONEWIRE Measures temperature
GNDDQVDD

Pins and ESP32 wiring

PinRoleESP32 pinNotes
GNDGroundGNDLeft leg, flat side facing you
DQOne-wire dataD25Middle leg. Needs a 4.7 kΩ pull-up to 3.3 V
VDDPower3V3Right leg

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.