A reed switch is a switch which is operated by a magnetic field. Two fine contacts are contained within a glass tube and spaced so that there is only a very small gap between them.