Device that can read and write NFC and RFID tags