} void loop(){ int dist = ultrasonic.Ranging(CM); if (dist < 100) { tone(buzzer,1000); delay(40); noTone(buzzer); delay(dist*4); } delay(100); } 244