Abstract: This invention describes a method and apparatus for protecting optical sensors in harsh industrial environments, particularly welding and machining. In a preferred embodiment, a sacrificial window is utilized which is replaced as needed. Numerous design features of such windows are disclosed. Other embodiments include protective baffles and other features.