The oil and gas industry face significant risks of explosions, often due to factors like gas and oil leakage as well as external corrosion. These substances are highly flammable, and even minor leaks can create volatile environments where the smallest spark can lead to catastrophic explosions. While internal corrosion in pipelines receives attention, external corrosion is often overlooked. Over time, pipeline coatings deteriorate, leaving them susceptible to external corrosion, which can result in leaks, endangering workers and the environment. Detecting and addressing corrosion promptly is crucial for preventing accidents and environmental harm. To address these challenges, a pipeline monitoring system has been developed using a Raspberry Pi Model 3B+ and advanced sensors. This system continuously monitors temperature, pressure, and external corrosion along pipeline routes. It utilizes a K-type thermocouple and a 1.2MPa pressure transducer for real-time data collection. Additionally, a laptop camera integrated with YOLOv8 enables visual inspection for detecting corrosion. The Raspberry Pi processes sensor data and images, triggering alerts for anomalies like temperature or pressure drops indicating leaks, or corrosion spots identified by YOLOv8. The system interfaces with ThingSpeak for remote data visualization and analysis, empowering operators to make informed decisions and take prompt corrective actions.