Hello Geckogrotto,

Well you're almost there. First you will need to get a 5 volt regulator to drop your 9 volts down to 5 volts for the PIC. Then connect the 10K resistor between 5 volts and the collector of the phototransistor. You can then connect the junction of the 10K resistor and the collector to the input of your PIC. Your program should "see" a low (ground) condition when the "beam" is being detected and a high (5volts) when the beam is broken.

Hope this helps you!

BobK