A surveillance project is commissioned in late autumn. Forty cameras go up, the first cold and humid morning arrives, and six of them show a milky image that clears by mid-morning. The lenses are blamed first, because the lens is what the image passes through. In many of those cases the lens is the least guilty component in the assembly.
Water and moisture reach the sensor through several paths, and only some of them are inside the lens. Knowing which path is which decides whether the fix is a new lens, a new housing, a vent, or a change in the assembly procedure.
IEC 60529 describes ingress protection with two digits. The first covers solids, from 0 to 6, where 6 means dust-tight. The second covers water, from 0 to 9K. The two that matter most for outdoor cameras are IPX6 and IPX7.
IPX6: protection against powerful water jets, tested with a 12.5 mm nozzle delivering about 100 litres per minute from roughly 3 m, for at least 3 minutes.
IPX7: protection against temporary immersion, tested with the enclosure 1 m below the surface for 30 minutes.
IPX9K: high-pressure, high-temperature jet cleaning, common in food and vehicle applications. It is a different test, not a higher version of IPX7.
The digits describe the assembled enclosure that was tested. They do not describe a lens on its own, and a lens cannot carry an enclosure rating by itself. This is the source of a common procurement error: an IP67 camera housing fitted with an unsealed lens is not an IP67 camera. The lens has to be part of the sealing strategy, and the rating has to be verified on the final assembly, with the final cable gland, bracket and connector.
IPX6 and IPX7 also exercise different failure modes. A design with a large internal air volume may survive immersion because the pressure difference is modest and brief, while failing a directed jet that finds a path along a thread or past a gasket edge. Passing one is not evidence for the other.
In a typical outdoor camera the lens sits at one end of a sealed volume and the sensor board at the other. The interfaces in between are where the problems are.
The thread interface. An M12×0.5 or C-mount thread is a helical path, and water travels along it by capillary action. The seal has to act at the shoulder or on an O-ring, not rely on thread engagement or thread-locking compound.
Front element retention. A glued-in element depends on adhesive that ages under ultraviolet light and thermal cycling. A threaded retainer needs a gasket, and over-tightening distorts the element.
Focus and zoom mechanisms. Helicoid threads need lubricant to feel right, and lubricant is both a channel for water and a trap for dust.
Cable entries and connectors. A gland that matches the cable diameter still leaks if the cable is pulled sideways after installation.
The pressure path. Every temperature cycle expands and contracts the air inside the enclosure. That pumping action pushes air and vapour through the weakest seal, which is often not the one that was tested hardest.
M12 lens barrels: the thread is the sealing interface, and capillary action along it is one of the most common leak paths in a small camera.
Photo: Boshi Optics (Shanghai Silk Optical Technology Co., Ltd.)
Water that enters from outside is a leak. Fog on the inside of the front element is condensation, and it can appear in an enclosure that never leaked at all.
Condensation forms when a surface drops below the dew point of the air around it. Air at 25 °C and 60% relative humidity has a dew point near 16.7 °C. If the inside of the front element falls to 15 °C, water forms on it, even though the enclosure is sealed. Two mechanisms drive that temperature drop. The first is a cold night after a warm, humid day, particularly when the camera has been powered down. The second is radiative cooling: the front element faces the open sky, radiates heat away, and can fall several degrees below air temperature.
An enclosure sealed at assembly with humid factory air will fog once and then stay fogged, because the moisture has nowhere to go. An enclosure that breathes will dry out, and will also take in moisture on the next humid night. Neither behaviour is a lens defect, and neither can be fixed by changing the lens alone.
The distinction matters commercially. A supplier who promises an anti-fog lens without asking about the housing, the internal volume and the duty cycle is describing a coating, not a solution.
Desiccant inside the sealed volume. Effective and inexpensive, but capacity is finite. The lifetime calculation needs the internal volume, the initial humidity and the expected vapour ingress rate, and the part has to be serviceable or sized for the product life.
A breathable vent. An ePTFE membrane equalises pressure without passing liquid water, which reduces the pumping effect and lets vapour escape. It works when the membrane is placed where it will not be submerged or coated with mud.
A heater or defogger. A small heater around the front element keeps the glass above the dew point. It works, draws power, and creates a thermal gradient that can move focus in a tightly toleranced lens.
Hydrophobic and oleophobic coatings. These help droplets run off the outside of the front element. They do not prevent condensation on the inside, and their durability depends on the cleaning regime.
Nitrogen purge and a fully sealed assembly. Used in higher-value systems. The purge has to be done at assembly with a controlled dew point, and the seal has to hold for the product life.
A double window or an air gap in front of the lens. The outer window takes the condensation risk and the inner lens stays dry, at the cost of two more optical surfaces and a little contrast.
Outdoor PTZ domes and compact cameras: each enclosure has its own sealing strategy, and the lens is only one boundary in it.
Photo: Boshi Optics (Shanghai Silk Optical Technology Co., Ltd.)
A datasheet line that says IP67 is not a test report. For an outdoor product, the following are reasonable to request, with the standard and the pass criteria stated.
IPX6 and IPX7 to IEC 60529, on the final assembly, with the production gasket and gland.
Temperature cycling with humidity, for example -40 °C to +85 °C to IEC 60068-2-14, followed by an MTF check and a visual inspection for fogging.
A condensation test that reflects the field condition: cold soak, transfer to a warm humid room, then image the front element.
Salt spray to ASTM B117 for coastal installations, including the coating and the housing finish.
For automotive programmes, ISO 20653 for ingress protection and ISO 16750 for environmental conditions.
Coating adhesion by cross-hatch, ASTM D3359, if the front surface carries a hydrophobic layer.
State the IP requirement on the camera assembly, and ask the lens supplier how the lens contributes to it.
Define the sealing method on the drawing: O-ring groove dimensions, gasket material, adhesive type and cure.
Give the full temperature range, including solar load on a dark housing, not just the ambient range.
Name the cleaning chemicals and the cleaning frequency, because they determine the coating choice.
Ask for the desiccant life calculation or the vent specification, not just confirmation that one exists.
Ask what happens after five years: adhesive ageing, gasket compression set, coating wear.
Treating an IP-rated housing and an IP-rated lens as an IP-rated system without testing the combination.
Over-torquing the lens into the holder, which deforms the flange, shifts focus and can crack the front element.
Using silicone grease on threads near the aperture, where it migrates onto the stop and reduces contrast.
Cleaning the front element with solvents that attack the anti-reflection coating, then blaming the coating for the haze.
Leaving the protective film on the front element during outdoor validation, which hides the real condensation behaviour.
Boshi Optics supplies lens assemblies for outdoor security, automotive and industrial cameras, and the sealing question usually arrives together with the optical specification. In practice that means agreeing the interface with the housing rather than the lens alone: which surface carries the O-ring, how much flange height is available, what the temperature range is, and whether the design needs a vent, a desiccant or a heater. The security monitoring lens and M12 interface lens pages show the mechanical formats we work with most often, and the temperature and focus shift article covers the other half of the same problem.
Keeping an outdoor lens dry is mostly a systems problem. The rating belongs to the assembly, the moisture often starts inside the enclosure, and fogging is a dew point question rather than a sealing question. A lens specification that names the sealing interface, the temperature range and the anti-fog method is far more useful than a catalogue line that says IP67.
Image credits and editorial notes (internal reference — not part of the article)
· All photographs are original Boshi Optics factory or product photographs supplied by the company and may be published on lensmanufacture.com without further clearance.
· Test standards named in the article (IEC 60529, IEC 60068-2-14, ASTM B117, ASTM D3359, ISO 20653, ISO 16750) are cited for reference only; pass criteria should be agreed with the test laboratory.
· No third-party or AI-generated imagery is used in this article.
· Internal links verified on lensmanufacture.com on 23 November 2026.