Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pH sensor - is my approach the optimal approach or is there a cleaner way? #24

Closed
JohnMcLear opened this issue Feb 7, 2025 · 1 comment

Comments

@JohnMcLear
Copy link

I'm using GPIO39 / Soil5 for pH

- platform: adc
  pin: GPIO39
  name: "pH"
  update_interval: 60s
  unit_of_measurement: pH
  # https://esphome.io/components/sensor/index.html#sensor-filters
  filters:
    - median:
        window_size: 7
        send_every: 4
        send_first_at: 3
    # Measured voltage -> Actual pH (buffer solution)
    - calibrate_linear:
        - 1.55 -> 7.0
        - 2.09 -> 4.0
  attenuation: auto

I removed all ref to Soil5

Is this the cleanest way to do this? Should there be a cleaner way?

@JohnMcLear JohnMcLear changed the title pH sensor pH sensor - is my approach the optimum approach or is there a cleaner way? Feb 7, 2025
@JohnMcLear JohnMcLear changed the title pH sensor - is my approach the optimum approach or is there a cleaner way? pH sensor - is my approach the optimal approach or is there a cleaner way? Feb 7, 2025
@PricelessToolkit
Copy link
Owner

Hi, your config is normal, just change the name part to

name: ${name} pH

PS: which pH sensor do you plan to use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants