       // motion stopped, return to work
       if (pirTrigger == LOW) {
         if (swBack == LOW) {
-          debug(currentMillis, F("IR sensor LOW - door open\r\n"));
+          debug(currentMillis, F("Motion sensor released - door open\r\n"));
           openMillis = 0;
           setLeds1(green, ledBlink);
           doorState = doorOpen;
         } else {
-          debug(currentMillis, F("IR sensor LOW - door blocked\r\n"));
+          debug(currentMillis, F("Motion sensor released - door blocked\r\n"));
           setLeds1(red, ledSolid);
           doorState = doorBlocked;
         }

        swFront = LOW; break;
    case 'F':
        swFront = HIGH; break;
    case 'm':
        debug(currentMillis, F("Door status: "));
        Serial.println(doorState);


void motorFree() {
  _motorFree();
  Serial.print(F("Brake released\r\n"));
}

void _motorFree() {
