   Serial.println("  1 ON");  
 } 
  
-uint8_t readButton(void) {
-  float a = analogRead(3);
-  
-  a *= 5.0;
-  a /= 1024.0;
-  
-  Serial.print("Button read analog = ");
-  Serial.println(a);
-  if (a < 0.2) return BUTTON_DOWN;
-  if (a < 1.0) return BUTTON_RIGHT;
-  if (a < 1.5) return BUTTON_SELECT;
-  if (a < 2.0) return BUTTON_UP;
-  if (a < 3.2) return BUTTON_LEFT;
-  else return BUTTON_NONE;
-}
-
-int scan_button(int swButton)
-{
-  int ADCreading = analogRead(swButton);
-//  Serial.println(ADCreading);
-  if (ADCreading < ADCThreshold) 
-         return (1);
-  else   return (0);
-}
-
 void tempPrint()
 {
   Serial.print("Current temperature F = ");

double currTime;

uint8_t buttonhistory  =  0;

// Thermocouples
Adafruit_MAX31855 thermocouple1(spiCLK, thermoCS1, spiMISO);


#define OFF 0
#define ON  1

// assign state values
#define START   1
#define RUNNING 2
#define STOP    3
#define STOPPED 4

// assign joystick positions
#define BUTTON_NONE 0
