 Often, the current in the output coil is integrated, yielding an output analog voltage proportional to the magnetic field.A wide variety of sensors are currently available and used to measure magnetic fields.Fluxgate compasses and gradiometers measure the direction and magnitude of magnetic fields.