Fire alarm systems are essential in alerting people before fire engulfs their homes. However, fire alarm systems, today, require a lot of wiring and labour to be installed. This discourages users from installing them in their homes. The proposed system is an ad-hoc network that is distributed over the house. This system consists of a microcontroller (ESP32) connected to an infrared flame sensor that continuously senses the surrounding environment to detect the presence of fire. And also MQ2 and MQ135 gas sensors are used for the detection of smoke and other toxic gases and alert them as per the condition. The microcontrollers create their own Wi-Fi network. Once fire is detected by a sensor, it sends a signal to a microcontroller that is triggered to send an notification to the user and alert the house by producing a local alarm. The user can also get information about the status of his home.