People seek a comfortable and safe living environment, but accidents such as home invasions, gas leaks, and fire often occur in our environment. Thus, a security system for disaster prevention and detection is very important. However, current common security systems are either too simple to function or too complicated to be installed and used. Hence, in this study, we developed a security system with a multi-agent architecture, which has multiple sensors and multiple communication interfaces. In the event of a disaster, this system can not only provide early warning, but also safely and quickly guide people to leave the scene of the accident. Our security system is composed of a variety of modules with different functions. Multiple sensors may be connected on one module. Every module can operate independently. Multisensor fusion and adaptive fusion methods make the modules more accurate in detecting events. The modules communicate via Wi-Fi, Ethernet, RF, power line communication, or other interfaces. At least two communication interfaces are active between modules to form a group with multi-agent architecture. When an event occurs, each group communicates with the others to find a safe escape route and then guides people safely and quickly away from the scene of the accident via light or sound from each module. In addition, these modules can connect to a monitoring system through the communication interfaces. The monitoring system, operating on a computer or a handheld device, can confirm that an incident occurred using fuzzy analytic hierarchy process (fuzzy-AHP) by these data and establish accident models for earlier warning. These models can be transmitted to the modules making them more intelligent. Since each module developed in this paper has the function of network communication, it can be an Internet of Things (IoT) node, and the monitoring system can form a regional disaster prevention system.