Pest infestations in agriculture reduce crop yield and quality, with traditional identification methods being time-consuming and less accurate. This study presents an advanced automated pest detection and control system that seamlessly integrates image recognition and IoT technologies, utilizing a web-based platform for real-time monitoring and management. The system identifies pests in real time using image analysis and provides immediate information with recommended control measures. By streamlining pest management, the system enhances efficiency, reduces pesticide misuse, and supports sustainable farming practices. This scalable and economical solution aims to improve crop health and productivity, addressing critical challenges in modern agriculture.