Code for the FI card reader