M8, M12 or M16: choosing a waterproof sensor connection
Three thread sizes cover industrial sensor wiring. What each is used for, how coding prevents expensive misconnections, and why IP67 alone does not make a washdown connection.
Industrial sensors connect through circular threaded connectors in three common thread sizes. Choosing between them is mostly about pin count and cable gauge, but the coding matters more than most people expect.
The three sizes
| M8 | M12 | M16 | |
|---|---|---|---|
| Pins | 3–4 (up to 8) | 3–8 (up to 12) | 4–8, more commonly 12+ |
| Typical cable | 24–22 AWG | 24–20 AWG | 20–16 AWG |
| Current per contact | ~2 A | ~4 A | ~10 A |
| Standard use | Proximity, photoelectric sensors | Most industrial sensors | Motor, actuator, multi-core |
| Sealing | IP67 typical | IP67 typical | IP67 typical |
M8 is the small end: proximity switches, photoelectric sensors, and anything where the sensor body is 8 mm across. It is not designed for power.
M12 covers the bulk of industrial sensing — inductive, capacitive, photoelectric, pressure, flow.
M16 is for where more conductors or heavier cable are needed: actuators, small motors, multi-signal bundles.
Coding is the part people skip
M12 connectors are coded — the internal keying differs, and only matching codes mate. This is deliberate: it prevents someone plugging a 24 V sensor into a 4–20 mA analogue input.
| Code | Typical use |
|---|---|
| A | General-purpose sensors and actuators |
| B | Fieldbus (older systems) |
| D | Industrial Ethernet, 100 Mbit |
| X | Industrial Ethernet, 1 Gbit |
An A-coded socket will not accept a D-coded plug. That physical incompatibility is a feature — it is why Ethernet and 24 V sensing survive on the same machine without being cross-connected.
Specify the code, not just the pin count. “M12 4-pin” is ambiguous; “M12 A-coded 4-pin” is not.
Sealing is an assembly property again
An IP67 M12 socket on the panel is IP67 only if:
- The mating plug is also IP67 and correctly rated
- The gasket is intact and compressed by proper torque
- The panel cutout is correct and sealed to the panel
- The cable exit from the socket body is sealed
Fitting an IP67 socket into an unsealed enclosure achieves nothing. The enclosure is the rated item; the connector is one component of it.
Where washdown defeats IP67
High-pressure washdown (food processing, pharmaceutical equipment) is usually IP69K, not IP67. IP67 is immersion at 1 m for 30 minutes; a pressure jet at 80 °C and 100 bar is a different challenge entirely.
If the equipment is jet-washed, specify IP69K connectors and verify with the supplier — IP67 parts will fail at the seal within months.
Specifying a sensor connection
Thread: M12
Coding: A
Pins: 4
Body: Straight female, panel mount
Cable: 24 AWG, 2 m, PUR jacket
Sealing: IP67 mated
Connection: Screw terminal inside the panel
Frequently asked
Can I use M8 for a 24 V actuator? Mechanically yes, but the contact current rating is around 2 A. Check the actuator’s inrush before committing.
Do I need a right-angle body? Where the cable would otherwise foul the machine frame or exceed the bend radius. Right- angle is a routing solution, not an electrical one.
Is a molded lead better than a field-wireable connector? For production, yes — molded leads are sealed and repeatable. Field-wireable connectors exist for repairs and are more prone to sealing failures.
Tell us the sensor type, the pin count, the code and the environment (cabinet, washdown, outdoor), and we will specify the socket, the lead and the sealing class together.
Need this built to your drawing?
Send the drawing, the gauge and the annual volume — we quote within one working day and sign an NDA before drawings change hands.