Agriculture is one of the most important economic sectors on which societies have relied since ancient times. With the recent development of technology, agriculture has also been incorporating modern techniques such as the Internet of Things and Artificial Intelligence to improve productivity and monitor the farming process. One of agriculture’s most prominent issues is the spread of plant diseases and the lack of real-time monitoring. Various systems and operations have recently been developed to predict and diagnose plant diseases. However, current operations have been selective, focusing on a specific aspect without addressing other important aspects, resulting in either partial or compound application of results, rendering the desired outcomes ineffective. To deal with such challenges, we propose an intelligent framework for real-time agriculture monitoring and disease detection, namely a system for monitoring plant diseases using YOLOv7. In the proposed framework, a rule-based policy has been designed for detecting plant diseases using online plant leaf monitoring, sensors, and surveillance cameras. Images of plant leaves captured by different cameras are sent in real-time to central cloud servers for disease detection. The improved YOLOv7 technology is utilized for plant disease detection, and the proposed system has been evaluated using a dataset of diseased tomato leaves, comparing it with different models based on various performance metrics to demonstrate its effectiveness, achieving an accuracy of 96%.