I've dipped into the archives of the US Patent and Trademark Office and pulled out the records of the original barcode pattern scanner, invented by N. Joseph Woodland and Bernard Silver. I've colored and numbered it to quickly illustrate how it worked. In the top picture, you can see the entire apparatus, including the barcode scanner, which is shown in the center in blue; in the lower picture, you can see a more detailed view of the scanner itself:
1.Like modern packages in grocery stores, Woodland and Silver envisaged items would have barcodes printed on one face.
2.You place the item to be scanned with its barcode face down on a conveyor made of some transparent material.
3.A variety of lights shine up on the barcode.
4.The scanner picks up light reflected off the barcode.
5.The scanner sends a signal to a sorting mechanism that can push the item in different directions.
6.The item is pushed onto different conveyors according to its particular barcode.
7.Now looking in closeup at the scanner: It has a lens on top that spreads the light reflected off the barcode.
8.The light from the lens spreads out onto a larger glass surface.
9.An electric motor and axle (red) move a scanning head (green).
10.Guided by the grooves in the axle, the scanning head moves from side to side.
11.A photoelectric cell (orange) inside the scanning head picks up the pattern of light and