Magnetic field strength and determining polarity