Esphomelib and ESP Soil Moisture Sensor

Hi,
i am trying to use esphomelib with ESP Soil Moisture Sensor. the sensor is: https://www.tindie.com/products/aprbrother/esp-soil-moisture-sensor-rev-21
It uses TMP112 with I2C which is not support by default, and I have tried to create a custom sensor but that turned out to be more complex than it seems for my beginner C++ programming skills. I am hoping somebody managed to integrate this, or if you can share a similar thing that can be modified to fit.

I found a sample project here but this requires more skills to modify the code for mqtt and homeassistant discover beyond my skills.

Hello, I recently ordered some soil moisture sensor modules ($1 each) model FC-28 and they’re compatible with esp8266/arduino. I put in a request with esphome to have them integrated.

I got a response from Otto Winter, he said;

“This is an analog sensor, and thus already supported with adc platform. See TEMT6000 example for converting the voltage values to moisture levels.”

So, once I get these in the mail I’ll try setting them up and post some code samples. Nice!

Thanks for the info, but this will not work properly for the sensor I have since there is also a temperature sensor that is not supported as well.

I have posted a request as well and will see what the feedback on that.

I figured this wouldn’t work for your existing sensor, but it’s a possible alternative and they’re cheap.

these ones are “TOXIC”
see this video https://www.youtube.com/watch?v=udmJyncDvw0 for a better alternative.