Smart Home Automation Forum
A4S water level sensor to Esphome - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A4 (https://www.kincony.com/forum/forumdisplay.php?fid=21)
+--- Thread: A4S water level sensor to Esphome (/showthread.php?tid=2893)



A4S water level sensor to Esphome - mvtech2430 - 05-09-2023

Hello need help,

I have this 2 sensor water level and pressure sensor but i dont know how to program it to ESPHome i cant see any code using this sensor in the internet hopefully anyone here can or know how to write the code. please see attached picture for reference.

I want to measure the level on how many percent of the tank like 100% is full and 50% half etc.

And the pressure of the water pipe like if 30psi to 70psi something like that.

Both output are 0-5V
My water tank is 3M height 

Thanks in advance


RE: A4S water level sensor to Esphome - admin - 05-10-2023

if output signal is DC 0-5v , you can add to home assistant by ESPHome, just use "ADC" function.
here is details: https://esphome.io/components/sensor/adc.html