Soil Moisture sensor output as a Percentage

What this lambda do? How I find this voltage?
How can I put this auto calibration on esphome?
auto calibration program
Instead of finding the value, can’t I get a LOW variable where it is substituted for each value below LOW and a HIGH variable where it is substituted for each value above that value?

Are these single wire sensors, similar to the DS18B20, allowing them to be chained together on a single ESP 32? Or, can you use more than one, using different GPIO pins?

You need to use one pin per sensor in this case.

You can use one sensor on every GPIO. Otherwise you could also use an add which communicates with I2C such as the ADS1115. You can hook up to 4 of the adc which can each measure 4 sensors.

This ymal is for ESP8266 or ESP32?
I think A0 pin is in ESP8266 and, attenuation: 11db is for ESP32 only
so I am confused.

please help… I have this board: ESP-12F_Relay_X2 | devices.esphome.io. As far as I can see, it has an unused ADC port (it’s the one I should use to connect the sensor?), but it is 0-1 V. Does this mean that I can’t connect the sensor directly to it?

How do you find the output voltages of the sensor? I used 1.25 and 2.8 as values in my yaml code, because these were the in the first post that I found that had yaml code for a capacitive soil moisture sensor. The sensor is working, but it reports 87% when submerged in water. The linearity may be way off because the dry voltage may be significantly higher than the 1.25v.

I’ve tried loading the ESP32’s web page at the IP address assigned to the device, but only get

Thank you.

Remove the calibrate section and then upload and watch what the voltage is when dry and then wet. Then apply those voltages to the calibration section

Thank you. I thought that it was probably something like that, but I was hoping that there was some way to display it so that the code only had to be rewritten once. Oh, well.

Is it possible with these soil moisture sensors to show both the voltage as well as the calculated percentage moisture?

I decided to add 2 capacitive sensors to an ESP32. They are still reporting voltage prior to setting the voltages in the linear calibration. Why does one of the sensors have a line without shading, while the second sensor has a shaded background?

image

image

see both chart , one is 1.5 to 3.0 and one is 2.55 to 2.70 so this is the reson