A barcode scanner is an input device that uses light beams to scan and digitally convert printed barcodes. It then decodes the data and sends the data to a computer. It consists of a lens, a source of light, and a light sensor that can translate optical impulses into electrical signals