Keeping error-proofing sensors working in harsh welding environments