See Brady Products
The CA12CLC08BPM1RT is an M12 DC capacitive proximity switch with a teach-in function for adjusting the sensing distance.