Need to know which phototransistor and LED specifications
The more specific information you provide, the more specific information we can provide. So based on the information you have provided:
- Connect LED to power with current limiting resistor.
- Connect phototransistor to a different current limiting/sense resistor similar to LED.
- Connect phototransistor/current limiting resistor junction to analog input on the Arduino.