 	pinMode(PRS_SEN, INPUT);
 	
 	pinMode(BTN, INPUT_PULLUP);
-	attachINterrupt(BTN, changeState, FALLING);
+	attachInterrupt(BTN, changeState, FALLING);
 }
 
 void changeState() {
 	switch (coffee.state)
 	{
-		case IDLE:
+		case IDLED:
 			coffee.state = VACU;
-			//	Idle -> Vacuum
+			//	IDLED -> Vacuum
 			break;
 		case VACU:
 			coffee.state = DRIN;

// Import NeoPixel library to initialize pixel 
#define VALV_PMP 7
#define VALV_CBR 6
#define VAVL_ATM 5
#define PUMP	4
#define BTN 3
#define PRS_SEN 8

// Different states of the machine: Idle, Vacuum, Dwell, and Drain
enum states {IDLE, VACU, DWLL, DRIN}

unsigned long startTime;

// Machine of various 'states' and updating method
class Machine
{
    // Class Member Variables
	volatile int state;						// Current state of the machine
	long vacDwlTime;    					// Time limit for Vacuum and Dwell state combined
	int updateInterval; 					// Update interval for checking for changed button state
 
 	// Constructor for Machine class
  	public:
  	Machine(int startState, long setTime, int interval = 20)
  	{
		state = startState;

	}
}

void idled() {
	ledStat.clear();
}

void vacuum() {
	startTime = millis();
	digitalWrite(VALV_PUMP, HIGH);
	ledStat.setPixelColor(0, ledStat.Color(255, 255,0));
	digitalWrite(PUMP, HIGH);
}

