 // ----------------------------------------------------------------------------------------
 void setup(){
 
-  pinMode(busPin,INPUT);  // Designate temperature bus pin data direction
-  pinMode(heatPin,OUTPUT);                // Heat circuit relay 
-  pinMode(coolPin,OUTPUT);                // Cooling circuit relay
-  Serial.begin(serialSpeed);
-
-  sensors.begin();        // Start up the library. IC Default is 9 bit. If you have troubles consider upping it 12. Ups the delay
-  lcd.begin(16, 2);       // set up the LCD's number of columns and rows
-  lcd.setBacklight(ON);   // Start off with backlight on until time-out
-  timeOut = millis();     // Set the initial backlight time
-
-}
+  setup_Network();           // Do all the things necessary to get the network protocol going
+
+  // --------------- Relay Setup ---------------
+  pinMode(heatPin,OUTPUT);   // Heat circuit relay 
+  pinMode(coolPin,OUTPUT);   // Cooling circuit relay
+
+
+  // --------------- Temperature Setup ---------------
+  pinMode(busPin,INPUT);     // Designate temperature bus pin data direction
+  sensors.begin();            // Start up the library. IC Default is 9 bit. If you have troubles consider upping it 12. Ups the delay
+
+  // --------------- LCD Setup ---------------
+  lcd.begin(16, 2);           // set up the LCD's number of columns and rows
+  lcd.setBacklight(ON);       // Start off with backlight on until time-out
+  timeOut = millis();         // Set the initial backlight time
+
+}
+
+
+
+
+
+
 
 // ----------------------------------------------------------------------------------------
 // Function Name: loop()

// ----------------------------------------------------------------------------------------
void powerControl(){
  
  // TODO: Add in fan relay control


  // This executes if the heater is running and it gets warm enough to turn off.

  }
}


// ----------------------------------------------------------------------------------------
// Function Name: setup_Network()
// Parameters:    None
// Returns:       None
// Description:   This function does all the prep work to create a network connection
// ----------------------------------------------------------------------------------------
void setup_Network() {
  
  // TODO: _________________________REMOVE ALL Serial stuff when it works________________________

  // Open serial communications and wait for port to open:
  Serial.begin(serialSpeed);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  // start Ethernet and UDP
  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // no point in carrying on, so do nothing forevermore:
    for(;;)
      ;
  }
  Udp.begin(localPort);
}
  

