   unsigned long currTime = millis();
   if ((currTime - prevTime) > tickInterval){
     prevTime = currTime;
+    currentTicks++;
     return true;
   }
 

#include <Wire.h>

unsigned long prevTime;
int tickInterval = 1000 * 5;
unsigned long currentTicks = 0;
String reqId = "";
int errorState = 0;
bool high = false;
bool conf = false;

int redPin = A7;
int yellowPin = A9;

}

void loop() {
  if (nextTick()){ 
      Serial.print("Current ticks: ");
      Serial.println(currentTicks);
      Serial.print("Current temp: ");
      Serial.println(temp);
      Serial.print("High: ");
      Serial.println(high);

      readValues();
      if (errorState != 3){
        
        errorState = checkRequirements();

        if (errorState == 1){
          currentTicks = 0;
        }
        
        changeStatus(errorState);
      }

      Serial.println();
  }

  checkForOperation();
}
