Hazardous gas leakage incidents rank among the most serious safety accidents, leading to significant loss of life, extensive property damage, and severe environmental pollution. This paper describes an innovative IoT-based Assembly Double Pipe System (IADPS) designed for the prevention, early detection, and automated isolation of toxic gas leaks. The proposed system features a double-layered pipe design, with nitrogen charged between the inner and outer pipes, and gas detectors installed at strategic locations. This configuration is intended to prevent pipe corrosion, suppress ignition caused by escaping gas, and facilitate the early detection of gas leaks, thereby mitigating the risk of safety accidents. Furthermore, the system includes a comprehensive real-time monitoring system for pipe integrity and gas leakage, as well as an automated gas leakage detection and isolation system to quickly respond to any incidents.