Common mistake and the compiler could have helped you
Change this line:
uint32_t NFC1 = 3795120787;
To this line:
const uint32_t NFC1 = 3795120787;
You will now get a compiler error, which would have resulted in you going :o.
This line needs a ==, not a =. Not this:
if(NFC1 = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A)){ / doh!
This:
if(NFC1 == nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A)){ / ahh
Side note, this is a common typing error and reason why
if(1 == somevar) // is superior to
if(somevar == 1) // something that seems exactly the same
Because the compiler will tell you
if(1 = somevar) // no, you can't assign to a constant
if(somevar = 1) // okay, whatever you want boss
This advice is from "Writing Solid Code", Maguire and Moore, and has served me well.