A sensorA device that can measure something about its environment. Examples are movement, light, color, moisture, pressure, and many more. that detects magnetic fields — from the earth or from anywhere else.
Inside the Internet of Things - Bryon Moyer Blog