DC motor controlled by IR reflect sensor

Many thanks;
I just started with Arduino..Only know the LED blink sketch. I got good experience in Animatronics (the mechanical part), but weak on programming because it took me quite a time to digest the simple LED sketches...I guess people brain like a radio, tuned on certain channels but not others..was hoping someone help with this code because I did all the mechanics already...If this tread is not the one; maybe as you said , I will look for the division you mentioned and try to know how to shift the tread.,..