Tips for measuring speed of ball

And maybe the distance between the 2 gates should not be too short to allow the arduino get both readings.

If they are 1 meter apart @2000 cm per second. means that the signals will be 1/20 second = 50 milliseconds apart