Best sensors for detecting line?

Use your lego code, break down what the code does and convert it to similar arduino language.

quick google search for arduino light sensor brings you here

http://www.arduino.cc/playground/Main/InterfacingWithHardware#light_sensor

scroll down some & do some reading to start.