ARDUINO LINE FOLLOWING ROBOT

  else if (difference<-10 && difference>10)

If the value is less than -10 AND greater than 10, go forward. How many values are simultaneously less than -10 and greater than 10?

Where are your Serial.print() statements?

Why is the last value read from the left and right sensors in setup() important? Is the robot holding perfectly still for the 5 seconds after reset?