The triggering mechanism is a motion sensor. It sends a 5v trigger to the microchip when it is activated.

What is happening with the current code that you just sent me is that when the left sensor sends a pulse to the microchip, the LED at portc.0 turns on for about 8 seconds and then shuts off. When the right sensor sends a pulse to the microchip, the LED at portc.0 flashes, then the LED at portc.1 turns on for about 8 seconds and then the LEDs flash ramdomly a couple times.

Is there a way to reduce the eight second delay? I tried shortening the pause, but that did not have much effect.

The plan is to replace the LEDs and have them lead to an H-bridge that controls a motor. Basically a type of camera tracking system.