   // Serial for debugging
   serial_setup();
   
+  // WiFi
+  wifi_setup();
+  
   // digital humididy temperature
   dht_setup();
 

  display.drawString(0, 50, ls);
  display.display();
}

// -----------------------------------------------------------------------------
// Serial output: code for dealing with serial output for the "Roost!" project
//  
#define SERIAL_BAUD 74880               // ESP native speed

void serial_setup(){
  Serial.begin(SERIAL_BAUD);
  Serial.println("Roost initializing!");
}

void serial_roost() {
  Serial.print("NTP epoch: ");
  Serial.print(ntp_epoch_in_seconds);

  Serial.print(" \tHumidity: ");
  Serial.print(h);

  Serial.print(" % \tTemperature: ");
  Serial.print(t);
  Serial.print(" *C ");
  Serial.print(f);
  Serial.print(" *F");

  Serial.print(" \tHeat index: ");
  Serial.print(hic);
  Serial.print(" *C ");
  Serial.print(hif);
  Serial.print(" *F\t");

  Serial.print("last motion: ");
  Serial.println(pir_last_motion);
}


// -----------------------------------------------------------------------------
// Web output:  code for dealing with internet for the "Roost!" project

}

// -----------------------------------------------------------------------------
// Serial output: code for dealing with serial output for the "Roost!" project
//  
#define SERIAL_BAUD 74880               // ESP native speed

void serial_setup(){
  Serial.begin(SERIAL_BAUD);
  Serial.println("Roost initializing!");
}

void serial_roost() {
  Serial.print("NTP epoch: ");
  Serial.print(ntp_epoch_in_seconds);

  Serial.print(" \tHumidity: ");
  Serial.print(h);

  Serial.print(" % \tTemperature: ");
  Serial.print(t);
  Serial.print(" *C ");
  Serial.print(f);
  Serial.print(" *F");

  Serial.print(" \tHeat index: ");
  Serial.print(hic);
  Serial.print(" *C ");
  Serial.print(hif);
  Serial.print(" *F\t");

  Serial.print("last motion: ");
  Serial.println(pir_last_motion);
}

// -----------------------------------------------------------------------------
// OLED control: code for dealing with oled for the "Roost!" project
//               uses library by Daniel Eichhorn downloaded from github
//               https://github.com/squix78/esp8266-oled-ssd1306
