This invention provides a switch state
detector, comprising: a magnetic component and a sensing component. The sensing component is used to detect magnetic induction intensity and is configured to: send a first message when the
distance parameter between the magnetic component and the sensing component gradually decreases to a first interval ending at a first threshold; and send a second message when the
distance parameter between the magnetic component and the sensing component gradually increases to a second interval starting at a second threshold. The first interval and the second interval do not overlap, and the difference between the second threshold and the first threshold is greater than or equal to 1 mm. The switch state
detector provided by this invention can prevent the sensing state from repeatedly switching when the distance between the magnetic component and the sensing component reaches a certain critical value.