Water is a vital and scarce resource in agriculture and its optimal management is emerging as a key challenge. This paper presents an automated irrigation system to reduce water utilization in agriculture by combining the Internet of Things (IoT), cloud computing and optimization tools. The automated irrigation system deploys low cost sensors to sense variables of interest such as soil moisture, pH, soil type, and weather conditions. The data is stored in Thingspeak cloud service for monitoring and data-storage.