Reading an SDI-12 sensor with ESP32 and ESPHome

Hi everyone,

I’m trying to connect an SDI-12 sensor to an ESP32 and bring the readings into Home Assistant using ESPHome.

As far as I can tell, ESPHome doesn’t support SDI-12 directly, so I’m looking for the best way to approach it.

Has anyone here done this before?

I’d be interested to know if you used an existing SDI-12 library, a custom ESPHome component, or some other workaround. Any example YAML/C++ code would also be really helpful.

Also, if there are any important hardware details I should watch out for when connecting the SDI-12 data line to the ESP32, I’d be happy to hear about that too.

There are plenty of different sdi-12 sensors. You might want to specify what you have.