Proximity switches using a magnetic detector {using inductive coils forming part of an oscillator with variable amplitude}