The code is determined by the thickness and spacing of the dark and light areas. A very basic barcode scanner uses a single LED light and light sensor. In this case, the user would need to slide the ...