M16: For small diameter cables as in the original application this gland is sufficient.
M20: This is the largest possible option.
Waipu SP21: If you want to replace the original connector with a 7- or 9-pin Waipu SP21 connector.
Recommended Material & Print Settings
0.1mm Layer height for good thread resolution
The 1.5mm pitch thread can be tight if there is too much extrusion
The test prints were made with PLA, if you want to use it in a car better use ABS, PETG, …
The O-Ring groove usually does not need support if you have enough outer perimeters (at least on the layer above the groove) and print them from the inside out.
Additional Hardware
1x 22.5x3 or 23x3mm O-Ring
1x M16/M20 Cable Gland or Bulgin PX connector as shown in the pictures
For Waipu SP21 only:
2x M3 heat set inserts
2x M3x8 screws
Please consider liking the model and posting a Make. It took a lot of revisions and a lot of filament to get this right.