what am i doing wrong here some help please

streatstyle:
Isn't that what the stop() in my setup does

Hum this is the code you have

void stop(){
digitalWrite(in1,LOW);
digitalWrite(in2,LOW);
digitalWrite(in3,LOW);
digitalWrite(in4,LOW);
Serial.println("STOP!!!");
}

I don’t see the IR being checked there before proceeding to the loop. Do you ?