Hi ,check this link for interfacing RFID with atmega8 http://www.electronicshub.org/rfid-based-attendance-system/ This is very simple.. Connect TX pin of RFID reader to RX (PD0) of the microcontroller and RX pin of RFID to TX( PD1 ) of the microcontroller