need Help with my project

Guys need some help here. I am planning on build a line following robot. I am planing to use two line follower breakout from the sparkfun(white surfaces reading about 100, black surfaces about 3000). If one of these sensors reads 3000 and other reads 100, the motor will do proper adjustment to make sure the car stay on the white line. However I do not know what code is going to be like. Can someone help me with the arduino code?

, black surfaces about 3000)

What are you reading them with? A Due?

its simple, you just make cases with if() statements.

//considering white line on black surface,

if((right>2500)&&(left>2500)){//straight}  

if((right<200)&&(left>2500)){//turn right}
 
if((right>2500)&&(left>200)){//turn left}

ILLUSIONWIZARD: However I do not know what code is going to be like. Can someone help me with the arduino code?

You should get a sensor and write a short program to learn how to use it. Sparkfun probably has demo programs.

Something complex like a line following robot is really a collection of separate functions acting together. Learn about each separately and the job becomes manageable.

...R