How to Detect Magnetic Fields with a Reed Switch Sensor on ESP32

My Reed Switch Sensor wouldn’t trigger with ESP32—because the magnet was wrong. Learn how to wire, test, and troubleshoot magnetic field detection fast.