 
     stepperL.run();
     stepperR.run();
+    
+    // check microswitches
+    if (!digitalRead(switchFL) || !digitalRead(switchFR)) {
+       digitalWrite(InternalLED, HIGH);
+       
+       // buzz
+       digitalWrite(LEDRED, HIGH);
+       analogWrite(buzzer, 125);
+       delay(250);
+       
+       digitalWrite(LEDGREEN, HIGH);
+       digitalWrite(LEDRED, LOW);
+       analogWrite(buzzer, 150);
+       delay(250);
+       
+       digitalWrite(LEDBLUE, HIGH);
+       digitalWrite(LEDGREEN, LOW);
+       analogWrite(buzzer, 180);
+       delay(250);
+    } else {
+       // led off
+       digitalWrite(InternalLED, LOW); 
+       
+       digitalWrite(LEDRED, LOW); 
+       digitalWrite(LEDGREEN, LOW); 
+       digitalWrite(LEDBLUE, LOW); 
+       
+       // stop buzz
+       digitalWrite(buzzer,LOW);
+    }
 }

#define motorRPin3  8     // IN3 on the ULN2003 driver 1
#define motorRPin4  9     // IN4 on the ULN2003 driver 1


// Initialize with pin sequence IN1-IN3-IN2-IN4 for using the AccelStepper with 28BYJ-48
AccelStepper stepperL(AccelStepper::HALF4WIRE, motorLPin1, motorLPin3, motorLPin2, motorLPin4);

  stepperR.setMaxSpeed(1000);
  stepperR.setAcceleration(500);
  stepperR.moveTo(5000);
  
  pinMode(switchFL, INPUT_PULLUP);
  pinMode(switchFR, INPUT_PULLUP);
  
  pinMode(InternalLED, OUTPUT);
  
  pinMode(LEDRED, OUTPUT);
  pinMode(LEDGREEN, OUTPUT);
  pinMode(LEDBLUE, OUTPUT);
  
  pinMode(buzzer, OUTPUT);
}

void loop()
