The TLV493D 3-axis magnetometer is a great little sensor for detecting magnets in 3D. In fact, the manufacturer suggests it could be used to make a joystick! You could also use it for other cool things like detecting objects with magnets attached.
The TLD493D excels at measuring nearby magnetic fields in three dimensions. It's not going to make a good compass, it's not sensitive enough to pick up the Earth's magnetic field, but you can use it to track the movement of nearby magnets in three dimensions.
As we are wont to do, we've made the TLV easy to use by putting it on a breakout PCB along with the circuitry to support it. A voltage regulator and logic level shifting combine to make it usable with a range of microcontrollers with either 3.3V or 5V logic levels. We even give you a pin for you to use the excess 3.3V juice not needed by the TLV493D.
Item Specifics
ATSAMD51 32-bit Cortex M4 core running at 120 MHz
Floating point support with Cortex M4 DSP instructions
512 KB flash, 192 KB RAM
2 MB SPI FLASH chip for storing files and CircuitPython code storage.
32-bit, 3.3V logic and power
Dimensions: 25.4mm x 17.8mm x 4.6mm / 1.0" x 0.7" x 0.2"