A barcode is the machine-readable representation of the UPC. Barcodes are read by a scanner that passes over the code and registers the UPC. The width of each black line and the subsequent white space between each line coincides with the numbers of the UPC.