 // Returns:       None
 // Description:   This is the main executing block of the program, calling all ancillary functions to operate the Arduino
 void loop(){
-  //Serial.println("Getting Temperature Data...");
-  //delay(100);
-  if (getTemp() == true) {
-    Serial.print("Current Temperature is: ");
-    Serial.println(currentTemp);
+  
+  lcd.setCursor(0, 1);
+  
+  
+  
+  uint8_t buttons = lcd.readButtons();
+  
+  if (getTemp()) {
+    lcd.clear();
+    lcd.print("Current Temp: ");
+    lcd.print(currentTemp);
   }
   
-  //if (getSetPoint() == true) {
-  //  Serial.print("Current setpoint is: ");
-  //  Serial.println(tempSetpoint);
-  //}
+  if (buttons) {
+    lcd.clear();
+    
+    // If the UP Button is pushed, increasing the setpoint
+    if (buttons & BUTTON_UP) {
+      high = high + 1;
+      lcd.print("Setpoint: ");
+      lcd.print(high);
+    }
+    
+    // If the Down Button is pushed, decreasing the setpoint
+    if (buttons & BUTTON_DOWN) {
+      high = high - 1;
+      lcd.print("Setpoint: ");
+      lcd.print(high);
+    }
+  }
   
 }
 



// -------------LIBRARIES---------------- THESE ARE REQUIRED TO BE IN YOUR SKETCHBOOK/LIBRARY FOLDER FOR COMPILING ----
#include <OneWire.h>
#include <DallasTemperature.h>

// --------------PARAMETERS---------------------
byte addrs[1][8] = {{16,206,166,130,2,8,0,63}}; // ,{16,24,64,68,0,8,0,112}
                                  // {16,24,64,68,0,8,0,112} Temp Sensor 1
                                  // {16,206,166,130,2,8,0,63} Temp Sensor 2
int busPin = 4;                   // Data bus for One Wire Comms
int upPin = 3;                    // Pin used to increase set temp
int downPin = 2;                  // 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

  }
}

  

