a hand - held bar code scanner has a field - replaceable optical element such as a window using a rubber boot to hold the window proximate to the scanner housing in front of the housing . the optical element is most typically a window but may also be a filter or lens .