 /* unsorted variables below. TODO: refactor & cleanup */
 
 // buttons & switches do different things in different states
-enum doorStates { doorClosed, doorOpening, doorOpen, doorClosing, doorBlocked, doorError } doorState;
+enum doorStates { doorClosed, doorOpening, doorOpen, doorClosing, doorBlocked, doorBlockedPir, doorError } doorState;
 
 double drivePWM = 0;
 const double drivePWMscale = 1; // fiddling aid, constant factor applied to calculated PWM value. TODO: update profile & remove

        break;
      }

      openMillis += elapsedMillis;
      if (openMillis >= openInterval || swBack == HIGH) {
        if (swBack == HIGH) {

const int switchTrigger = 2;
const int switchTriggerIRQ = 0;

// PIR sensor
const int pirPin = 12;

// on-board status LED
const int statusLED = 13;


/* WS2812 LEDs */

