How to connect scanner code to expel attendance

we already have the barcode maker that can scan but we dont know how to save it to an attendance using excel.