Although precision agriculture has been adopted in few countries, the greenhouse based modern agriculture industry in India still needs to be modernized with the involvement of technology for better production and cost control. In this paper we proposed a multifunction model for smart agriculture based on IoT. Due to variable atmospheric circumstances these conditions sometimes may vary from place to place in large farmhouse, which makes very difficult to maintain the uniform condition at all the places in the farmhouse manually. Soil and environment properties are sensed and periodically sent to cloud network through IoT. Analysis on cloud data is done for water requirement, total production and maintaining uniform environment conditions throughout greenhouse farm. Proposed model is beneficial for increase in agricultural production and for cost control and real time monitoring of farm.