Modeling and Optimization for Irrigation Control Using Wireless Sensor Networks - Meru Sandbox