Reed Switches
Reed switches consist of switch contacts enclosed within a glass tube. Because the contacts are made of iron, when a magnet is placed close to them, one of the contacts moves to touch the other.
One application is in security systems where they are used to detect if a door has been opened.