Code to handle RFID