Capacitive Soil Moisture Sensor with ESP8266 (no battery) by Johnny_Woo 3d model
Warning. This content is not moderated and could be offensive.
smoke
3dmdb logo
Thingiverse
Capacitive Soil Moisture Sensor with ESP8266 (no battery) by Johnny_Woo

Capacitive Soil Moisture Sensor with ESP8266 (no battery) by Johnny_Woo

by Thingiverse
Last crawled date: 4 years, 2 months ago
Capacitive Soil Moisture Sensor, based on ESP8266 (Mini D1) and 1$ sensor.
This module run ESPHome, and connect to Home Assistant.
Sensor is plugged in Analog To Digital converter.
Material:
ESP 8266 d1 mini : https://www.aliexpress.com/item/32635160765.html
Sensor : https://www.aliexpress.com/item/32832538686.html
Dont forget to waterproof board with nail varnish or epoxy.

**
Code (had the remove comment mark on thingiverse because it screw up text display):
esphome:
name: d1_mini_1
platform: ESP8266
board: d1_mini
wifi:
ssid: "ssid"
password: "password"
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "D1 Mini 1 Fallback Hotspot"
password: "62wyi816wkxL"
captive_portal:
Enable logging
logger:
Enable Home Assistant API
api:
password: "password"
ota:
password: "password"
ADC converter input
sensor:
platform: adc
pin: A0
filters:
lambda: |-
if (x > 0.53) {
return 0;
} else if (x < 0.29) {
return 100;
} else {
return (0.53-x) / (0.53-0.29) * 100.0;
}
name: "Grapefruit_watering"
update_interval: 2s

Tags