Measures for preventing electric discharge due to pyroelectricity