I found this example really detailed and thorough.

 

https://www.mathworks.com/help/supportpkg/arduino/examples/arduino-based-smart-watering-of-plants.html

 

Any thoughts on what other sensors can come in handy when one uses smart techniques in agricultural space?