Infrared LED transmitter and receiver

Yes runaway pancake thats what they are and I only need them to detect when a ball passes between them set at inches apart. Is there a way to calibrate them with arduino like over a analog pin?