Scanning QR code to take attendance