Reed switch
The reed switch is an electromechanical switch operated by an applied magnetic field. It was invented in 1922 by professor Valentin Kovalenkov at the Petrograd Electrotechnical University, and later evolved at Bell Telephone Laboratories in 1936... Wikipedia