 #include <Wire.h>
 
 unsigned long prevTime;
-int tickInterval = 1000 * 5;
+int tickInterval = 1000 * 2;
 unsigned long currentTicks = 0;
-String reqId = "";
+String reqId = "D";
 int errorState = 0;
 bool high = false;
 bool conf = false;
+
+int error2Temp = 21;
+int error3Temp = 22;
 
 int redPin = A7;
 int yellowPin = A9;


int complexCheck(double d1, double d2){
  if (!high){
    int res = above(temp, 30);
    if (res == 3){
      high = true;
      return checkRequirements();
    }
    return combine(res, noMore(d1));
  }

  return combine(above(temp, 30), noMore(d2));
}

int noMore(int numberOfTicks){

  } else if (reqId == "AF"){  
    return combine(complexCheck(3,2), isFreeze(temp));
  } else if (reqId == "BF"){
    return combine(complexCheck(5, 3), isFreeze(temp));
  } else if (reqId == "CF"){
    return combine(complexCheck(5, 3), isFreeze(temp));
  } else {
    return 0;
  }
