Insulation Displacement Connectors (IDC) are a fast and easy way to terminate cables with either M8 or M12 connections. They are rated to IP67 and are rugged enough for tough environments.
Murrelektronik offers one of the largest cordset lineups on the market for connecting sensors and valves. They are durable, available in a variety of styles, and the majority of the styles are in stock.
By using T-couplers you reduce the number of cables required and you can combine inputs and outputs depending on the application.