ESP32-S3 + Water Pressure transducer = Weird readings

Dear All,
I am having some issues with my water filters blocking, hence decided to track everything in HA… hence purchasing some sensors to expand what is already on my ESP32

At the moment it is all sitting in ambient air on my desk, hence I am expecting the pressure to be around 0.
I have 2 of them connected and they are constantly around 1Mpa and .3Mpa; but when I unplug everything from the ESP…the readings dont seem to change at all…

Does anyone have any ideas?

  • Are all 3 sensors faulty
  • Is my YAML wrong?
  • My wiring?

I have purchased these sensors, with the following specs:
Supply: 3.3v
Output: 0.4 to 2.4
Range: 0 to 10Mpa

In terms of how it is wired up:

  • Ground - Goes to ground on ESP
  • Supply - Goes to 3V3 on ESP
  • Output - Goes to GPIO1 or GPIO2 on ESP (ADC1)

Below is an extract from the code

  - platform: adc
    name: "Prefilter Pressure"
    pin: GPIO01
    id: Prefilter_pressure
    #raw: true
    update_interval: 1s
    unit_of_measurement: "Mpa"
    accuracy_decimals: 4
    attenuation: 11db
    filters:
      - calibrate_linear:
        - 0.4 -> 0.0
        - 2.4 -> 10.0
      - sliding_window_moving_average:
          window_size: 4
          send_every: 1

10MPa is 100 Bar.
Are you sure of that?

Yes, this is what is printed on the side of the sensor

Maybe 1.0Mpa ??
Anyway verify your analog input first. Remove all the filters and connect analog pin to gnd and get reading, then disconnect from gnd and connect to 3.3v and get reading.

1 Like

That it’s your “true” zero

1 Like

This could be the reason… I am looking at too small of a range. And with a 1% accuracy…

So what’s your needed pressure range?