          client.print(c = buffer[i]);
          
       }
-     
+      analogWrite(GREEN_PIN,191);
+      analogWrite(RED_PIN,48);
+      analogWrite(BLUE_PIN,196);
+      delay(1000);
+      digitalWrite(GREEN_PIN,LOW);
+      digitalWrite(RED_PIN,LOW);
+      digitalWrite(BLUE_PIN,LOW);
       //disconnects from socket
       client.stop();
     }
     else
     {
+      digitalWrite(RED_PIN,HIGH);
+      delay(500);
+      digitalWrite(RED_PIN,LOW);
+      delay(500);
+      digitalWrite(RED_PIN,HIGH);
+      delay(500);
+      digitalWrite(RED_PIN,LOW);
       Serial.println("Connection failed. Is port open?");
      
     }

#define DEST_PORT         5000        //Arbtrary port number, can change
#define MACHINE_LOCATION  "emrg"     //Dept code. This will change 
#define BIN_LOCATION_SIZE  6          //number of characters in your MMIS number

MFRC522 mfrc522(SS_PIN, RST_PIN);   // Create MFRC522 instance.
MFRC522::MIFARE_Key key;

byte trailerBlock   = 7;



void setup() {
   
   Serial.begin(9600);
   pinMode(GREEN_PIN,OUTPUT);
   pinMode(RED_PIN,OUTPUT);
   pinMode(BLUE_PIN,OUTPUT);

  //start up wifly
  WiFly.begin();
