A magnetic field device, with a first magnet, a first ferromagnetic element positioned adjacent to the first magnet, a second magnet, a second ferromagnetic element positioned adjacent to the second magnet and relative to the first ferromagnetic element to create a gap between the first ferromagnetic element and the second ferromagnetic element, and a third magnet positioned between the first ferromagnetic element and the second ferromagnetic element and within the gap.