As the national economy and people's quality of life are gradually rising, people's home environment and life are improving. On the other hand, many cities are expanding, the population is increasing, and the number of immigrants is also increasing. Therefore, more residential areas need to be built in cities. The necessary equipment in residential areas is long-term electrified equipment such as household appliances. While this kind of equipment is convenient for people's lives, it will also bring some unsafe factors, which will cause damage to people's property and life Threats. In the fire and anti-theft events, the accidents can be caused by two factors: one is caused by human factors, such as theft, and the other is caused by natural disasters. Therefore, we must have a kind of equipment to avoid this kind of phenomenon. We should be informed in advance about fire prevention and anti-theft to avoid property loss and life protection.The earliest product is the use of mechanical anti-theft function. This mechanical product has many problems. First of all, it is very complex in use, and then there is no guarantee of safety. Subsequently, due to the continuous progress of electronic technology, sensor technology has been developed, a lot of electronic technology products have emerged, these products are safe and reliable, stable operation, this new product through the design of sensors and related circuits, will eventually achieve the function of fire and anti-theft.