I believe the quickest, simplest to setup, and use method would be to use a QR code linking to a Google Form, which will log attendance in a Google Sheet for you. For this approach, students would scan a QR code (possibly different codes for different classes, postable as printout or on a projector screen), enter their name/student ID in the form and submit it, leaving you with a log of who's present and who is not.
To defeat students cheating the attendance by returning to the same form repeatedly or otherwise cheating the system, I have 4 possible solutions that could be deployed independently or in combination.
1. Take attendance at a random point in class, opening/closing the response form so that it's only valid for ~5 minutes. Anyone not present would need a friend to tell them exactly when to respond.
2. Use a keyphrase/question, attendance requires students verify they're there with on-hand knowledge.
3. Take attendance twice, requiring 2 entries to be counted as having attended.
4. Rotate the forms/QR code for responses. Try to make it difficult for students to come once, get the code, and then cheat the system.
This gives you all the data in a real-time, processable format. Alternatives to this would be to handout an email address via QR code, or a custom system, but none of this is full proof. I've attempted to offer you a quick, editable arrangement I can setup and then teach/show you the details of for maximum flexibility.