buzzer does not work with distance sensor hc-sr04

I don't se a resistor in series with the LED, it should be about 220 ohms.
Did you make pin 10 an output?