     body += currentTemp;
     body += F("}");
     
-    String head = F("POST /temp_gauge/reading HTTP/1.1\r\n"
-    "Host: fremont:9200\r\n"
+    String head = F("POST /thermReadings HTTP/1.1\r\n"
+    "Host: fremont:8080\r\n"
+    "Content-Type: application/json\r\n"
     "Content-Length: ");
     head += body.length();
     head += F("\r\n\r\n");

  
  // Read data until either the connection is closed, or the idle timeout is reached.
  unsigned long lastRead = millis();
  Serial.println(F("Elasticsearch response: "));
  while (client.connected() && (millis() - lastRead < TIMEOUT_MS)) {
    while (client.available()) {
      char c = client.read();

#define     READING_DELAY_SECS     10     // Number of seconds to wait between readings.
#define     TIMEOUT_MS             15000  // How long to wait (in milliseconds) for a server connection to respond
#define     SERVER                "fremont"
#define     PORT                  8080

#define MAX_DS1820_SENSORS 1
byte addr[8];
