Hello Everyone
I have 7 water tanks.
One large underground tank that holds 70000 liters
and 6 that hold 4500 liters each.
I have water pressure sensors at each tank and they deliver data in the form of mV - 500mV is equal to atmospheric pressure and therefore 0 liters - the maximum voltage is 4500mV for these units.
I have used the statistics sensor to smooth out the voltage over time so that I don’t get erratic data.
My question is how to convert the mV to Liters.
The underground tank gives a reading of 4013 mV when it has 70000 liters.
the other six tanks give a reading of 2500 mV when full with 4500 liters.
This is what my yaml code for the Underground Tank looks like. All suggestions are gratefully accepted as I am very new to all this.
Cheers
Gareth
captive_portal:
sensor:
- platform: adc
pin: GPIO03
raw: false
attenuation: auto
accuracy_decimals: 0
unit_of_measurement: "mV"
filters:
- offset: 0.0
- multiply: 2000.0
- calibrate_linear:
- 0.00 -> 0.00
- 2500.00 -> 2500.00
- sliding_window_moving_average:
window_size: 2
send_every: 1
send_first_at: 1
id: underground_water_tank_level_id
device_class: moisture
name: "Underground Water Tank Level"
update_interval: 90s
- platform: wifi_signal
name: "Underground Water Tank Level - WiFi Signal"
update_interval: 90s
binary_sensor:
- platform: analog_threshold
sensor_id: underground_water_tank_level_id
name: "Underground Water Tank Level Full"
threshold: 4013