摘要 |
A magnetic sensor according to the invention includes: a detector detecting the intensity of magnetic field; a comparison portion comparing the result of the detection with a set threshold value and outputting an output signal corresponding to the result of the comparison; and a threshold-value adjuster adjusting the threshold value. Thus, inconveniences due to a reverse magnetic field phenomenon or magnetic-field offset phenomenon can be solved as simple as possible. |