This is an array of sensors with controlled light source, to detect aline. Your program can then decide if you wish to follow that line ordo something else.
Easy to mount on your NXT robot facing ground
Reporting dark and light pattern from sensor array