Recently, security systems are one of the most important research problems. Among these systems is the gas and flame leak detection system. Here we propose a system to monitor the presence of fire and the gas concentration in real time in the atmosphere. This system is based on an Arduino board which allows to process and transfer data from two sensors (gas and flame sensor) to a smart phone. An alert has been triggered if a gas or flame leak is detected. Indeed, a message has been sent to the person concerned. This, we made a wireless connection between the application that already installed on the smart phone and the Arduino board through a Bluetooth module.