     }
     Serial.println("");
     Serial.println();
+  } else {
+    return 0;
   }
 
   for(int i = 0; i < 4; i++){

  }
  if (GoodTag == "True"){
    Serial.println("Success!");
    return 1;
  } else {
    Serial.println("Tag not accepted :(");
    return 0;
  }
}

  //Initialise serial communications
  SPI.begin();
  Serial.begin(115200);
  
  nfc.begin();
  byte version = nfc.getFirmwareVersion();
  if(!version){
    Serial.print("Didn't find RC522 board");
    while(1);
  }


  multicast.begin();
  Serial.print(NODE_IDENTIFIER);
