Try this...
Since it is supposed to be NPN.... The collector would get tied to +Vcc. (Right? Maybe you would think?)
So... Tie the collector to an 6K to 8K resistor (or close) Then the resistor gets tied to +5V...
The other lead (anode? emitter?) goes to Ground.
The junction of the resistor and collector -- tie it to an analog input....
Then see if you can measure a change or a pulsed change as you "illuminate" it with the ball "transmitters". When the diode is "illuminated" you should see the diode/transistor draw current -- or bring the voltage at the collector-resistor junction closer to ground.
See this for a similar diode used in a similar way....
http://www.marktechopto.com/Engineering-Services/photo-sensor-application-note.cfmBest I can do. It's too late to think this hard.
