Need Help With a Light Sensor Swich

I am building a Car that can run on its own power but needs to start when a light is turned on and continue to move until it see's another light source of the same intensity further down the track. If you have a program that includes the motor that would be fine but any help would be great.

bump