Need Help with Piezo Buzzer and Ultrasonic Sensor code

Try replacing the speaker with a LED + 220 ohm resistor.
what happens with the LED?