How does a scanner decode a message?
A sensor in the scanner can tell how much light reflecting from the barcode.
A sensor construction is very complicated like human’s eye.
A sensor has a mirror inside to read the code.
A sensor itself has software to read the bar code.