 // *************************************************************
 
 void loop() {
+
+  // read Motor Switches
+  int motorSwitchLeft = digitalRead(PORT_MOTOR_SWITCH_LEFT);
+  int motorSwitchRight = digitalRead(PORT_MOTOR_SWITCH_RIGHT);
+
+  if (motorSwitchLeft == HIGH) {
+    switchOffMotor();
+    publishDebug("Motor Switch Left is HIGH");
+    lcdStatus("Motor SW Left High");
+    delay(100);
+  }
+  if (motorSwitchRight == HIGH) {
+    switchOffMotor();
+    publishDebug("Motor Switch Right is HIGH");
+    lcdStatus("Motor SW Right High");
+    delay(100);
+  }
 
   switch (state) {
     case MOTOR_SWITCH_DETECTED:

  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("Finished Motor");
  delay(500);

}

// Initialise motor

void initMotor() {
  publishDebug("Testing Motor");
  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("Setting Motor L");
