The LED is powered by SQ1 (LED can be directly connected since SQ1 has a 100 Ohm series resistor inside). The phototransistor collecor is connected to SEN and emitter to Ground. The conenctions can be tested by setting SQ1 to generate a pulse and observing the same on SEN. From the GUI you can control the LED.
The penulum is made to oscillate between an LED and a photo-transistor. The light falling on the photo-transistor is inercepted during the oscillations. The LED is powered by SQ1 (LED can be directly connected since SQ1 has a 100 Ohm series resistor inside). The phototransistor collecor is connected to SEN and emitter to Ground.
A photograph of the experimental setup is shown below.