Magnetic contacts and vibration detectors