Abstract:Smart home has become the current trend of home development, and the smart home security system is an important part of the smart home system. With the development of society, people have put forward higher requirements for the safety and convenience of smart homes. A security and defense system based on ZigBee is described in this paper, effectively avoiding the wiring trouble, inconvenient maintenance and maintenance and other issues. The system are collecting the family environment information through sensors. The data collected by terminal and routing nodes are transmitted to the network coordination. The data collected are processed and analyzed by coordinator node. Network coordinator reported alarm information to the GSM through serial port protocol, and then sent the alarm information to the user’s phone by GSM. The result proves that the system packet loss rate is less than 0.1%, stable performance and realizes the design target and possesses practical value to some extent.