added 1 second sleep when colission detected
for the sensor data to be correct