The materials we used: 1 uno R3, ultrasonic sensor module and 4 f-m wires.
Here, the uno R3 is connected to the ultrasonic sensor module with the help of 4 f-m DuPont wires. The GND port of sensor module is connected to the GND port of the uno, the echo is connected to the D11 pwm, the trig is connected to the D12 MISO, and the vcc is connected to the 5V port.the original codes the distance in every one second.with the change of the time with delay in 2 seconds, it calculates the distance in every 2 seconds.