Mega 2560 coding issues


  finishSensor1 = analogRead(finishSensor1Pin);
  finishSensor2 = analogRead(finishSensor2Pin);

Print these values to see what they start at and go to when the light changes.



BTW, Show us a good schematic of your circuit.
Show us a good image of your ‘actual’ wiring.