Well this has been an interesting topic to read. This is very similar to how I’ve imagined building an irrigation system for my yard.
I plan on starting small and using a solenoid to control some drip irrigation for my deck. Currently I plan on using a Sonoff SV to control a 12v solenoid to turn the water on and off. This seems like the most straightforward way to do it for me as I really have no experience writing code for arduino or python scripts. So a sonoff flashed with tasmota just seems like the way to go for me.
Which brings me to my main stumbling point for this project. I would like to implement soil moisture sensors into this setup. I’ve found plenty of examples of simple arduino sketches that will read the sensor. What I haven’t been able to locate is a sketch that has the script for the soil moisture sensor and then communicate the data via MQTT. I was planning on using a nodeMCU attached to the soil moisture sensor for this.
This guy appears to have exactly what I’m looking for: https://github.com/Luc3as/ESP8266-PlantMonitor
However, I have no idea how to get his coding onto the nodeMCU. The only way I know how to flash one is with the arduino software.
Any help would be appreciated.