Tennis ball detector with the ability to manually set the the threshold