In today’s world some technology companies are using sophisticated IT systems to integrate urban services and infrastructures. The smart city is made up of different parts that make the Internet of Things one of the most important infrastructural necessities for optimizing process automation functions. With the increase in world population and the need for food supply on one hand and the lack of water, energy and agricultural land on the other hand, traditional agriculture no longer meets the food needs of the world population, so smart agriculture has received more attention in recent years. The Internet of Things (IoT) is a novel technique which is able to provide many solutions for agricultural modernization. The agricultural process is affected using wireless sensor network and is anticipated to utilized from the IoT. The problem that we are trying to solve is to minimize the energy consumption in smart green houses. Each sensor should communicate with each other and their own headers with efficient energy consumption. The main contribution of this thesis is to study the IoT applications in a smart city, Investigate the use of IoT in smart greenhouses, explore the infrastructure required to use the Internet of Things and provide solutions for efficiency in smart greenhouse performance by improving IoT energy consumption.