A barcode scanner captures an image by camera or reads a barcode by light reflection. Then, it uses an algorithm to decode the image or code into readable and meaningful data. Once it matches the text or information with an entry in the retailer’s database, the scanner retrieves and presents the encoded information on its display or sends it to a connected electronic device, like a computer, cash register, or checkout terminal.