 // device specifics
 #include "WirelessConfig.h"
 #include "SensorConfig.h"
+#include "ESP8266WebServer.h"
 
 #define TRANSMIT_INTERVAL_SECONDS 30
 #define MILLIS_IN_SECOND 1000


int counter = 0;
char macAddress[] = "00:00:00:00:00:00";

void setup() {
  delay(1000);


    // don't send out temperature too often as we'll get 
    // incorrect values if we sample too often


    // read temperature in Celsius
    currentTemp = SHT2x.GetTemperature();
    snprintf(tempMessage, MAX_MESSAGE_SIZE, "0, 0 - temp: %s",
             dtostrf(currentTemp, 4, 2, floatBuffer));
    client.publish(TEMP_TOPIC, tempMessage);

    // read humidity
    currentHumidity = SHT2x.GetHumidity();
    snprintf(tempMessage, MAX_MESSAGE_SIZE, "0, 0 - hum: %s",
             dtostrf(currentHumidity, 4, 2, floatBuffer));
    client.publish(HUM_TOPIC, tempMessage);

    char lightMessage[MAX_MESSAGE_SIZE];
    lightValue = analogRead(LIGHT_PIN);
    snprintf(lightMessage, MAX_MESSAGE_SIZE, "0, 0 - light: %d", lightValue);
    client.publish(LIGHT_TOPIC, lightMessage);

    counter = 0;
  }

  server.handleClient();
}
