This tilt sensor is used to detect the inclination. It is a mercury switch where the glass fills with mercury. It acts as on-off switch for some pre-set angle....
This is a small device called a reed switch. When the device is exposed to a magnetic field, the two ferrous materials inside the switch pull together and the switch closes. When the magnetic field is removed, the reeds separate and the switch...