Proximity switches using a magnetic detector {using inductive coils in a resonant circuit controlled by an oscillatory signal}