Code to handle RFID through serial