Magnetometer

an instrument used for measuring magnetic forces, especially the earth's