 {
   static unsigned long last_change = 0;
   unsigned long current_time = millis();
-  if ((current_time - last_change) < 1000) {
+  if (((current_time - last_change) < 2000) && (buttonStatus != NoButtons)) {
     // It has been too soon since the last change. Disallow this.
     return;
   }

      }
      break;
    case NodeOK:
      // Solid green LED
      ledRGB(0, 40, 0);
      break;
    case LossOfRadioContact:
      // Blinking red LED

#define DEBUG 1

// SENSOR ID. Each sensor must have a unique ID, which is used to determine which reading comes from which part of the building.
#define SENSOR_ID 3

// Time delay between sensor readings (in seconds)
unsigned int sensor_period = 20;
