rfid problem

Don't use SoftwareSerial with a Mega. Use one of the other hardware serial ports.