Inductive proximity sensor M18 mounting