Hall effect sensors are great at detecting the presence of a magnet nearby. This US5881LUA Hall effect sensor is ideal for non - contact and waterproof switches, position sensors, and rotary/shaft encoders. After testing dozens of different hall effect sensors for the SpokePOV kit to find the best one for determining wheel location, this sensor came out as the top choice! It can operate within a voltage range from 3.5V to 24V. To use it, connect power to pin 1 (the leftmost pin), ground to pin 2 (the middle pin), and a 10K pull - up resistor from pin 3 to power. When the south pole of a magnet is near the front of the sensor, the voltage at pin 3 will drop to 0V. Otherwise, it will stay at the voltage set by the pull - up resistor. It's a unipolar sensor, so nothing happens when the north pole of a magnet is nearby. It works really well with high - strength magnets. You can also read the datasheet and a useful whitepaper from the manufacturer with many application ideas and designs.

Using this US5881LUA Hall effect sensor is easy. First, make sure your power supply is within the 3.5V to 24V range. Connect power to the leftmost pin, ground to the middle pin, and attach a 10K pull - up resistor from the third pin to power. To detect a magnet, bring the south pole of the magnet near the front of the sensor, and you'll see the voltage at the third pin drop to 0V. Note that it only reacts to the south pole of the magnet. When not in use, store it in a dry and cool place. Avoid exposing it to strong magnetic fields other than the ones you're testing with. Regularly check the connections to ensure they're secure. If you want more details, refer to the datasheet and the whitepaper from the manufacturer.