Model-Based Power Management for Smart Farming Wireless Sensor Networks