Need Help with Piezo Buzzer and Ultrasonic Sensor code

I tried all combinations of inside the loop and outside the loop, with the delay statement and without, none work, all have silent buzzer. Yes, sensor is working according to serial monitor.