A02YYUW waterproof ultrasonic distance (UART) with ESP32

Supply 3.3-5 V Bus GPIO Measures distance
VCCGNDRXTX

Pins and ESP32 wiring

PinRoleESP32 pinNotes
VCCPower3V3Red wire. Use 3V3 so TX stays at 3.3 V
GNDGroundGNDBlack wire
RXInput (the ESP32 drives it)D25Yellow wire. Mode select: HIGH or open = processed value, LOW = real-time value
TXOutput (the part drives it)D26UART: the part sends data here. Connect to an ESP32 RX pin (9600 baud). White wire

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.