The magnetic field sensor in your device is continually monitored and when the detection level is crossed, the counter is increased by one. Detect from the magnetic field in either of the X, Y, Z directions, or from the magnitude of the magnetic field, |B|. Detect on rising or falling past the detection level. AC or DC coupling option.