A magnetometer can sense where the strongest magnetic force is coming from, generally used to detect magnetic north
:Features
Model : GY-271
I2C interface
1-2 degree heading accuracy
Integrated 12-bit ADC
160Hz max data rate
Range of -8 to +8 Gauss
يستخدم عادة للكشف عن المغناطيسي