Arduino sketch that uses the Tempest by WeatherFlow broadcast weather data to control rain sensor on an automatic irrigation system.
Listen to Rain events/rainfall count being broadcast by WeatherFlow, and toggle the Rain sensor on an automatic irrigation system.
This project uses a relay shield on a Wemos mini D1, wiring the NC (Normally Closed) side to the Rain sensor on the irrigation system.
Using a DC Power Shield (7-24V) on the Wemos, the Wemos can be powered from the irrigation system with an AC/DC converter to convert it's 24VAC to DC and connecting the DC power to Power Shield. Allowing the whole unit to fit inside the automatic irrigation system enclosure.
The amount of rain required to trigger sensor, and the amount of time before the rain sensor is disabled is controllable via a web page served by the sketch.
Change the lines in WeatherFlow-RainSensor.ino
to contain your WiFi SSID and Password:
const char *ssid = "your_wifi_ssid";
const char *password = "your_wifi_password";
Make sure you upload the web files to a LittleFS file system on the Wemos unit.
This library is licensed under MIT License