what am i doing wrong here some help please

so you said

So the code I want to write is to have the IR start the line tracking

--> that mens that before you get the IR, you actually don't want to do anything right? the car stays put. Then you could have that in the setup() and wait there for the IR.