Sustainable agriculture has become increasingly important in Tunisia due to the drought that has been affecting the country's climate in recent years. This has become a major threat to the economy, making it necessary to explore alternative methods of agriculture that are more sustainable. Moreover, smart hydroponic cultivation based on renewable energies has become increasingly widespread, promoting the quality and efficiency of agricultural production despite weather parameters variations and global warming. This work aims to create a sustainable agriculture system in Tunisia through the design and implementation of a smart photovoltaic (PV) hydroponic greenhouse. The greenhouse will utilize advanced technology to optimize plant growth and reduce water usage, while also incorporating solar panels to generate renewable energy. The end goal is to create a self-sufficient and eco-friendly agricultural system that can provide fresh produce to local communities year-round. In this work, we are interested to the automation of the hydroponic greenhouse (HG)’s thermal conditioning system based on an asynchronous motor pump and powered by a PV generator. In the first stage, we analyzed the mathematical modeling of a stand-alone PV-HG system that consists of a PV generator, a three-phase inverter, an asynchronous motor pump, and a hydroponic system. After that, we developed a Field Oriented Control based on proportional integral (PI) regulators to adjust the rotation speed of the asynchronous motor pump, which aimed to provide the cooling and heating needs of the plant. The simulation results demonstrated the effectiveness of the proposed system . Additionally, we designed and implemented a smart system based on the internet of things (IoT) to enable remote control of internal and external parameters of the HG. This intelligent solution utilizes sensors, microcontrollers, and other devices and ensures the monitoring and the maintaining of the ideal growing conditions for our plants, guaranteeing that they receive the proper amount of temperature, humidity, and lighting. This type of system can be an invaluable tool for maximizing yields and achieving optimal results. With the right approach and attention to detail, we can create a sustainable and efficient growing environment that will help our plants flourish year-round.