Write to serial port by detecting a RFID card