I am looking to connect a card reader to the pi and when the card is read it will start a 5 minute timer ( this card will be the master card). Once that card has been swiped if another card is swiped in the 5 minutes it will turn on a LED and send an email. If the card is swiped 5 minutes after the first 5 minutes ends it will Light a separate LED and send a different email.
I am quite new to C code and have never used RX and TX before, I am looking to simulate an input (the card) using my pc until I can get the needed equipment. Any help would be great as I am a bit lost trying to find the code.