Advances in Internet of Things (IoT) and wireless technologies are revolutionizing various sectors, including environment, education, healthcare, industry, etc. In the same dynamic, as the world population constantly evolves, solutions based on such technologies need to be proposed to improve the agricultural sector. Senegalese agriculture, primarily rain-fed and based on both cash crops and subsistence food crops, faces challenges from climate change, environmental impacts, and traditional methods. Lack of information on good practices, new efficient and low-cost farming methods, and access to seeds, along with the COVID-19 pandemic, further complicates the situation. This research work proposes a smart farming management system that uses IoT technology, named MbaïMi, whose main objective is to improve Senegalese agriculture through new digital technologies for sustainable agriculture, environmental benefits and food self-sufficiency. It provides a real-time decision support tool that offers farmers best seeds to choose at the beginning of work and helps optimize water resources. Additionally, the system includes features like sending SMS/advice, graphical visualizing of temperature and humidity changes for greenhouse cultivation control. The development of a web and mobile application, deployment of a prototype in southern Senegal, and validation case studies demonstrate the system's potential to improve farmers' yields and daily hard work to meet the challenges of sustainable agriculture, environmental benefits and food self-sufficiency.