 }
 
 void setup() {
+  lcd.begin(16, 2);
+  lcd.print("Booting....");
+  
   Serial.begin(9600);		// Initialize serial communications with the PC
+  
   SPI.begin();			// Init SPI bus
   mfrc522.PCD_Init();		// Init MFRC522
+  
   updateDisplay();
 }
 

    Serial.println(" |");
    Serial.println("|                    |");
    Serial.println("+--------------------+");
  } else if (state == WAIT_FOR_UNLOCK) {
    Serial.println("+--------------------+");
    Serial.println("|                    |");
    Serial.println("| Waiting for        |");
    Serial.println("|       unlocking    |");
    Serial.println("|                    |");
    Serial.println("+--------------------+");
  } else if (state == INVALID_PIN) {
    Serial.println("+--------------------+");
    Serial.println("|                    |");
    Serial.println("| Invalid PIN        |");
    Serial.println("|   Pleas try again. |");
    Serial.println("|                    |");
    Serial.println("+--------------------+");
  } else if (state == UNLOCKED) {
    Serial.println("+--------------------+");
    Serial.println("|     Welcome!       |");
    Serial.println("| The space is open. |");
    Serial.println("|                    |");
    Serial.println("| Press 0# to lock.  |");
    Serial.println("+--------------------+");
  }
}


String buffer = "";

void updateDisplay() {
  lcd.clear();
  if (state == LOCKED) {
    /*
    Serial.println("+--------------------+");
    Serial.println("|                    |");
    Serial.println("| Hello Stranger!    |");
    Serial.println("|   Door is locked.  |");
    Serial.println("|                    |");
    Serial.println("+--------------------+");
    */
    lcd.print("Hello Stranger! ");
    lcd.setCursor(0, 1);
    lcd.print(" Door is locked.");
  } else if (state == PIN_ENTRY) {
    /*Serial.println("+--------------------+");
    Serial.println("|Entry token read.   |");
    Serial.println("|Please enter PIN:   |");
    Serial.print("| ");
