The E2E-X4MD1-M1TGJ-US 0.3M from Omron Automation and Safety is a DC2-W M8 proximity sensor with a 4 mm normally open (NO) sensing distance and an M12 SMCL connector, UL (0.3M).
The ASBS 2 M8 from Lumberg Automation is an in-line Y-shaped circular connector distributor, 4/3 (2), with male pins and female sockets (2), free hanging.