Trigger: A 10µs high-level (TTL) pulse is sent to the Trig pin.
Transmit: The sensor emits eight 40kHz ultrasonic bursts.
Receive: The Echo pin goes high when the signal starts and stays high until the echo returns.
Calculate: The time the Echo pin is high (pulse width) is measured by the microcontroller, which calculates distance using the speed of sound (Distance = Speed × Time / 2).