Proximity switches using a magnetic detector {using inductive coils in a resonant circuit forming part of an oscillator}