       }
     }
     lastPowerCheck = millis();
+  }
+  // Check the temperature and update the server
+  if (millis() > lastTempCheck + TEMP_CHECK_FREQUENCY) {
+    checkTempHumid();
+    lastTempCheck = millis();
   }
   // Check status to update variables
   computerOn = digitalRead(POWER_LED);

  }
  server.send(200, "application/json", "{\"status\":\"complete\"}");
}

int relayOn =               0;
int computerOn =            0;
int relayOffWhenPowerDown = 0;
char temp[8] =             "";

void setup() {
  Serial.begin(115200);
  initWifi();
  dht.begin();

  server.on("/", getStatus);
  server.on("/on", powerOn);
