buzzer does not work with distance sensor hc-sr04

You are now talking about a servo motor when there is no servo motor in your image.

  • Does your circuit have a servo connected to it?