Hi All - I’m building a pool controller with temperature and pressure using a Esp32 DevC board. I have the temperature working just fine. On the pressure sensor i’m getting a lot of inconsistent readings of voltage. Its a basic transducer powered by 5Vs and reads between 0 and 150psi. Since my pool would never go above 50psi i simply connected the output to GPIO35 pin. The specs are 0psi=0.5V, 50psi=2.5v, 150psi=4.5V. I know normally i would need to shift the voltage down to 0-3.3V but in theory this should never go above 2.5V.
Below is the ESPHome code and its pretty simple. Problem is i’m getting inconsistent readings and they are no way close to what my analog gauge is reading so i assume this is a hardware problem. Can anyone see anything wrong with my setup here?
- platform: adc name: "Filter Pressure" pin: GPIO35 id: pressure update_interval: 30s unit_of_measurement: "PSI" accuracy_decimals: 2 attenuation: 11db filters: - calibrate_linear: - 0.5 -> 0.0 - 2.5 -> 50.0