     }
   }
   
-  if(millis() - lastTrigger > 100) {
-    if(analogRead(RF_V) > threshold) {
-      digitalWrite(WARN_LED, HIGH);
-    } else {
-      digitalWrite(WARN_LED, LOW);
-    }
-    lastTrigger = millis();
-  }
-  
+  checkOutputLevel();
+
   //wipe stale status
   if (statusDisplayed && millis() - lastStatus > 2000) {
     clear_line(1);

   spinDirection = 2;
   encval = 0;
  } 
}

void setup() {

long lastClick = 0;
long lastBlink = 0;
long lastStatus = 0;
long last_mem[NUMBER_MEM_BUTTONS];

boolean blinkState = false;
