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