Here is an interesting circuit for a magnetic proximity switch which can be used in various applications. The magnetic proximity switch circuit, in principle, consists of a reed switch at its heart. When a magnet is brought in the vicinity of the sensor (reed switch), it operates and controls the rest of the switching circuit. In place of the reed switch, one may, as well, use a general-purpose electromagnetic reed relay (by making use of the reed switch contacts) as the sensor, if required. These tiny reed relays are easily available as they are widely used in telecom products.