code reading mifare tags (without this library)