Skip to content

Instantly share code, notes, and snippets.

@derglow
Created January 11, 2021 17:25
Show Gist options
  • Save derglow/c82ccb384266477152be4ac2aaa6fbe5 to your computer and use it in GitHub Desktop.
Save derglow/c82ccb384266477152be4ac2aaa6fbe5 to your computer and use it in GitHub Desktop.
ESPHome pH Probe Configuration
sensor:
#pH sensor
- platform: adc
pin: GPIO34
name: "Reef pH"
attenuation: 6db
unit_of_measurement: "pH"
update_interval: 5s
accuracy_decimals: 2
filters:
- calibrate_linear:
# Map 0.0 (from sensor) to 0.0 (true value)
- 1.68 -> 6.86
- 1.21 -> 9.18
- sliding_window_moving_average:
window_size: 60
send_every: 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment