A logical extension of the spring or wire, such as a system of springs or wires, could also be used.
The exact design, quantity, position, and sensitivity of the magnetic field sensor can be varied to according to the required design.