To enhance the security of residential premises,this paper designs a home burglary prevention system based on GSM SMS module,which includes three main parts:the sensor module,the control module,and the GSM module.The sensor module includes infrared sensors and electromagnetic sensors to check for intrusion by strangers.The control module,an STM32F103C8T6 microcontroller,receives signals from the sensor module and determines whether to trigger an alarm condition.Once the alarm condition is met,the control module will send an alarm SMS to the user via the GSM module.Additionally,the system has an armed and disarmed mode to distinguish between the homeowner and outsiders,which can improve the system's accuracy and flexibility.