Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
esphome:
name: plant_moisture
platform: ESP32
board: esp32dev
wifi:
ssid: "spam"
password: "eggs"
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "password"
ota:
password: "password"
sensor:
- platform: dht
pin: 22
model: DHt11
temperature:
name: "plant_0_temperature"
humidity:
name: "plant_0_humidity"
- platform: adc
pin: 32
name: "plant_0_soil_moisture"
attenuation: 11db
unit_of_measurement: '%'
filters:
# 1.1v = in water
# 2.94v = dry
lambda: |-
return (2.95 - x) * 100.0 / (2.95 - 1.1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.