   if(loopCounter == TICK_HEAP_DEBUG) {
     Serial.print("free heap="); Serial.println(ESP.getFreeHeap());
   }
+
+
+  if(loopCounter == TICK_POST_DEBUG) {
+    // create a JSON form and ping 192.168.1.151:5984
+
+IPAddress couchServer(10,0,0,24);
+WiFiClient couchClient;
+Serial.print("couchServer: ");
+Serial.println(ip2str(couchServer));
+
+    if(googleClient.connect(googleServer, 80)) {
+      Serial.println("connected to google server");
+      googleClient.stop();
+    } 
+    if(couchClient.connect(couchServer, 5984)) {
+      Serial.println("connected to server");
+      couchClient.println("POST /fishydata HTTP/1.1");
+      couchClient.println("Content-Type: application/json");
+      couchClient.println("Connection: close");
+      couchClient.println();
+      couchClient.println("{ \"key\": \"value\" }");
+    } else {
+      Serial.println("no couch server");
+    }
+    // couchClient.stop();
+  }
+  delay(100); // TODO
+  blink(4);
+  delay(100);
+
   loopCounter++;
 }
 

/////////////////////////////////////////////////////////////////////////////
// humidity sensor stuff ////////////////////////////////////////////////////
DHT dht(12, DHT22); // what digital pin we're connected to, plus type DHT22 aka AM2302
const boolean GOT_HUMID_SENSOR = true;

/////////////////////////////////////////////////////////////////////////////
// Light sensor stuff ///////////////////////////////////////////////////////
Adafruit_TSL2591 tsl = Adafruit_TSL2591(2591); // pass in a number for the sensor identifier (for your use later)
const boolean GOT_LIGHT_SENSOR = true;

/////////////////////////////////////////////////////////////////////////////
// RC switch stuff //////////////////////////////////////////////////////////

    // ledOff();
    postSensorData(monitorData);
  } 
*/
  if(loopCounter == TICK_WIFI_DEBUG) {
    Serial.print("SSID: "); Serial.print(apSSID);
    Serial.print("; IP address(es): local="); Serial.print(WiFi.localIP());
