A budget-friendly soil sensor for learning analog readings and threshold-based pump or relay control.