 
   // valve demo mode TODO remove?
   if (GOT_TEMP_SENSOR==FALSE) {
-    valveStateChange(1, TRUE, P1_MCP_PIN, S1_MCP_PIN);
+    flowController.valves[0].on();
     delay(15000);
-    valveStateChange(1, FALSE, P1_MCP_PIN, S1_MCP_PIN);
+    flowController.valves[0].off();
     delay(5000);
   }
 

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include "./DNSServer.h"      // Patched lib
#include <FS.h>
#include <OneWire.h>
#include <DallasTemperature.h>

  long waterLevel1;
  long waterLevel2;
  long waterLevel3;
  // TODO add last reboot
  // TODO add free memory?
} monitor_t;
monitor_t monitorData[MONITOR_POINTS];
int monitorCursor = 0;
