Ok I'll try to explain the circuit the best I can.
The IR led has a Resistor of 470Ω. The photo transistor has a 10K resistor in the VCC input and has a IN4006JCM in its output. If I measure the current in the output it gives me 2µA.
I attached an image ( not the best diagram) of the Led and phototransistor.
My circuit needs to do the following:
When the signal between the LED and the Phototransistor is interrupted, the other component I'm using (CPLD) to do a count. SO basically everytime the signal is interrupted, the CPLD will count so I know how many times was the signal interrupted.