Mega 2560 coding issues

Serial.println(finishSensor1);

Serial.println(finishSensor2);

To confirm what is actually being read.


There is an icon with an up arrow in the posting menu.

Use it to upload the schematic and actual wiring images.


“ I have looked at it and tried several different coding configurations for LED 3 but it still doesn't work”

Don’t see a digitalWrite(LED3, HIGH); anywhere.


BTW
Run the simple Blink sketch to see if the LED3 is wired properly.