DC 3-wire proximity sensor