   
 }
 
+// ----------------------------------------------------------------------------------------
+// Function Name: getTemp()
+// Parameters:    None
+// Returns:       Boolean, True if the temperature has changed, else False
+// Description:   This function polls the temp sensors, retrieves the values, and then returns
 boolean getTemp(){
   currentTemp = 0;
   long temp = 0;
-  sensors.requestTemperatures(); // Send the command to get temperatures
+  sensors.requestTemperatures(); // Send the command to the device to get temperatures
   
+  // Go through devices and read the temperatures
   for(int x = 0; x < numOfDevices; x++){
     // ------------FOLLOWING LINES FOR TESTING ONLY
     //Serial.print("Sensor ");

    //Serial.print(" reports: ");
    //Serial.println(sensors.getTempF(addrs[x]));
    temp = sensors.getTempF(addrs[x]);
    if(temp > currentTemp){     // WHY DO I HAVE THIS AS > ??? ------------------------
      currentTemp = temp;
    }      
  }
  if (currentTemp != oldTemp) {
    oldTemp = currentTemp;
    return true;

#include <DallasTemperature.h>

// --------------PARAMETERS---------------------
byte addrs[1][8] = {{16,24,64,68,0,8,0,112}}; // ,{16,206,166,130,2,8,0,63}
                                  // {16,24,64,68,0,8,0,112} Temp Sensor 1
                                  // {16,206,166,130,2,8,0,63} Temp Sensor 2
int busPin = 2;                   // Data bus for One Wire Comms
int upPin = 3;                    // Pin used to increase set temp
int downPin = 4;                  // Pin used to decrease set temp
int numOfDevices = 1;             // How many sensors are in loop
int high = 80;                    // This is the default high temp setting
int low = 70;                     // This is the default low temp setting
long currentTemp = 0.0;             // Highest or lowest temp depending on mode
