I rebuilt my ESP32 powered water tank sensor and for some reason I can’t seem to get the ADC to work on any pin number supporting ADC any longer. I either get a 'ESP32 doesn’t support ADC on this pin" before installing the YAML or after installing it, i’ll get random voltage readings (i’m using a Gravity analog current to voltage converter connected to a pressure sensor).
this device was working on pin A0 and A4 previously. am i missing something?
Hey Tom, tried that. Even If i get a YAML to install, the ESPs are returning moderately fluctuating readings that don’t seem to correlate (increase or decrease) when the sensors are submerged. The problem started when i removed the devices from ESPHome, wiped them using the command line python tool, and re-provisioned them into ESPHome. Before connecting the lead/wire to the pin the voltage readings are 0.00v. The readings stay the same without the sensor attached. odd.
So had a lot of a look at the documentation, randomly chose another pin with ADC… that being A2 (GPIO34) - but as you suggested - as GPIO. Bingo. working.
thanks again!