   Serial.println(F("WiFi connected"));
   Serial.println(F("IP address: "));
   Serial.println(WiFi.localIP());
-  delay(3000);
+  delay(10000);
 
-  // connect to adafruit io
-  mqttclient.setServer("io.adafruit.com", 8883);
-  mqttclient.setCallback(callback);  
+  // connect to mqtt server
+  mqttclient.setServer("192.168.0.50", 1883);
+  mqttclient.setCallback(callback);
   connect();
 
 }


}

// connect to adafruit io via MQTT
void connect() {

  while (WiFi.status() != WL_CONNECTED) {

  Serial.print(F("Connecting to "));
  Serial.println(WLAN_SSID);

  WiFi.mode(WIFI_STA);
  WiFi.begin(WLAN_SSID, WLAN_PASS);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
