 void loop() {
    
    if(bNewInt){  //new read interrupt
-      bNewInt = false;
       Serial.print("Interrupt. ");
       mfrc522.PICC_ReadCardSerial(); //read the tag data
       // Show some details of the PICC (that is: the tag/card)


    /*Activate the interrupt*/
    attachInterrupt(digitalPinToInterrupt(IRQ_PIN), readCard, FALLING);

    Serial.println("End setup"); 

    do{ //clear a spourious interrupt at start
      ;
    }while(!bNewInt);
    bNewInt = false;
}

/**

#include <MFRC522.h>

#define RST_PIN         9           // Configurable, see typical pin layout above
#define SS_PIN         10           // Configurable, see typical pin layout above
#define IRQ_PIN         2           

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