With the progress of society and the development of Internet of Things technology,the design of intelligent security systems has attracted much attention.How to establish a low-cost,safe and efficient intelligent security system to prevent potential hazards has become a priority issue for various industries.This article focuses on the alarm system,implement two functions:fire prevention and anti-theft.Analyze and elaborate on building hardware circuits,designing software programs,and other aspects,the purpose is to build an efficient intelligent security system.