A Scalable Distributed System for Precision Irrigation