   dnsServer.processNextRequest();
   server.handleClient();
 
+  int m = monitorCursor;
   updateSensorData(monitorData);
   Serial.print("monitorData[monitorCursor].celsius:" );
-  Serial.println(monitorData[monitorCursor].celsius);
+  Serial.println(monitorData[m].celsius);
   delay(10000);
 }
 

  Serial.begin(115200);
  // Serial.setDebugOutput(true);

  WiFi.mode(WIFI_AP_STA);
  WiFi.softAPConfig(apIP, apIP, netMsk);
  WiFi.softAP(ssid);

  Serial.println(monitorCursor);

  monitor_t* now = &monitorData[monitorCursor];
  now->timestamp = millis();
  getTemperature(&now->celsius, &now->fahrenheit);

  if(++monitorCursor > MONITOR_POINTS)
    monitorCursor = 0;
}

void printMonitorEntry(monitor_t m, String* buf) {
