Reed Electrical contact
http://09vodostok.ru/user/r617b5d02i
The reed electrical contact consists of thin, flexible metal strips sealed inside a glass tube. When a magnet approaches, the strips snap together to complete a circuit, and they spring apart when the magnet withdraws. This simple, reliable mechanism is common in alarm systems, speed sensors, and door position indicators.