ESP32 Hall Sensor

The esp32_hall sensor platform allows you to use the integrated hall effect sensor of the ESP32 chip to measure the magnitude and direction of magnetic field around the chip (with quite poor accuracy).

Warning

Espressif has removed support for the ESP32’s Hall sensor in IDF 5; for this reason, support for this component is likely to be removed in a future release.

Please make sure that nothing is connected to pins GPIO36 and GPIO39 if this component is enabled, as those pins are used for the internal low-noise amplifier used by the hall sensor.

../../_images/esp32_hall-ui.png
# Example configuration entry
sensor:
  - platform: esp32_hall
    name: "ESP32 Hall Sensor"
    update_interval: 60s

Configuration variables:

  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.

  • All other options from Sensor.

Warning

The values this sensor outputs were only calibrated with a few magnets and no real “truth” sensor. Therefore the values could very well be off by orders of magnitude. Besides, this sensor should only be used to detect sudden high changes in the magnetic field.

If you have a real magnetic field calibration setup and want to contribute your values to ESPHome, please feel free to do so 😺.

See Also