A magnetic field sensor for measuring movement of a target object , the movement in an x-z plane within x-y-z Cartesian coordinates with x, y, and z orthogonal axes, the magnetic field sensor comprising: a substrate having a major planar surface within twenty degrees of parallel to the x-z plane ; a plurality of magnetic field sensing elements disposed upon the major planar surface of the substrate, each one of the plurality of magnetic field sensing elements having a major response axis parallel to the major planar surface of the substrate , wherein the plurality of magnetic field sensing elements is configured to generate a respective plurality of magnetic field signals; and an electronic circuit disposed upon the substrate and coupled to the plurality of magnetic field sensing elements , the electronic circuit comprising: at least one analog or digital comparator configured to compare each respective one of the plurality of magnetic field signals to a respective threshold signal to generate a respective plurality of binary signals, states of the plurality of binary signals indicative of a position of the target object ; and a non-volatile memory device coupled to the plurality of binary signals, wherein the non-volatile memory device is adapted to decode the plurality of binary signals to generate a corresponding non-volatile memory device output signal , wherein the non-volatile memory device output signal is indicative of a speed and a direction of the movement of the target object. a substrate having a major planar surface within twenty degrees of parallel to the x-z plane ; a plurality of magnetic field sensing elements disposed upon the major planar surface of the substrate, each one of the plurality of magnetic field sensing elements having a major response axis parallel to the major planar surface of the substrate , wherein the plurality of magnetic field sensing elements is configured to generate a respective plurality of magnetic field signals; and an electronic circuit disposed upon the substrate and coupled to the plurality of magnetic field sensing elements , the electronic circuit comprising: at least one analog or digital comparator configured to compare each respective one of the plurality of magnetic field signals to a respective threshold signal to generate a respective plurality of binary signals, states of the plurality of binary signals indicative of a position of the target object ; and a non-volatile memory device coupled to the plurality of binary signals, wherein the non-volatile memory device is adapted to decode the plurality of binary signals to generate a corresponding non-volatile memory device output signal , wherein the non-volatile memory device output signal is indicative of a speed and a direction of the movement of the target object. at least one analog or digital comparator configured to compare each respective one of the plurality of magnetic field signals to a respective threshold signal to generate a respective plurality of binary signals, states of the plurality of binary signals indicative of a position of the target object ; and a non-volatile memory device coupled to the plurality of binary signals, wherein the non-volatile memory device is adapted to decode the plurality of binary signals to generate a corresponding non-volatile memory device output signal , wherein the non-volatile memory device output signal is indicative of a speed and a direction of the movement of the target object. <EOS>