buzzer does not work with distance sensor hc-sr04

LarryD:
Place this in setup()
pinMode(buzzerPin,OUTPUT);
Or
pinMode(10,OUTPUT);

Yes a resistor is necessary!

if there is no any voltage from output, what does it means?