LEDs can be used as sensors. The uses two LEDs to detect a black line on the floor.
The connection of the LEDs allows the Audioino Robot to use the LEDs as front light and as a sensor.
hardware issues:
The design of this project may seem a little bit strange: why are the diodes connected this way?
With this design the diodes may be used as light sensor:
http://www.arduino.cc/playground/Learning/LEDSensor