ESPHome Multiplex

I am trying to figure out how to code out 4 tank sensors that I need to read voltage from. I have the circuit built out using diodes, but just need to be able to turn on a GPIO pin, read A0, then turn off for each of the 4 different GPIO pins. Looking for any examples of setting up ESPHome sensors / automation for this.

Eric

Sorry, I can’t help you with your specific setup. At a glance I’d say you would probably need to implement a custom component to achieve time-based multiplexing.

However, I would have picked an extender such as ADS1115 which gives you 4 analogue pins.