# Application of Internet of Things in a Kitchen Fire Prevention System
## 4 Results  
The architecture of the smart kitchen fire prevention system constructed in this study is displayed in Figure 13.  
In this study, the Arduino, Webduino and D1 Mini are used as the control panels (the middle part of Figure 13). The environmental data is collected by the gas detector, temperature detector, and flame detector (the upper part of Figure 13). The measured values are passed to Arduino and shown on the display. The editor and Blockly on the right of the figure is the program editing software of Arduino and Webduino respectively. The mobile phone can be connected to the IP Camera to check the cooking fire condition of the kitchen. When you find that you have not turned the stove off, you can connect to the Webduino by pushing the phone button and activate the relay to turn off the main gas switch. When any of the sensors detect any value exceeding the set value, the controllable mechanism on the bottom of the figure can be activated to trigger the alarm, open the door lock, send the Line notification message, as well as turn off the main gas switch. This study employed IoT to develop a smart kitchen fire prevention system. Creating the system architecture entailed integrating the control board, sensing elements, and controlled devices and developing control software. The setting of the controlled devices and Line notifications was established. The proposed system can serve as a reference for designing kitchen fire prevention systems. \begin{table}
\begin{tabular}{c c c c} \hline \hline
**Name** & **Brand/Model** & **Function** & **Price (USS)** \\ \hline Arduino & Uno & Detects sensor signals and initiates controlled facilities & 6.0 \\ \hline Webduino & Mark1 & Remote control facility, such as shutting off gas supply & 28.0 \\ \hline D1 Mini & Esp8266 & Transfer IFTTT and Line information & 3.0 \\ \hline Flame detector & CSE0005-1 & Detect flame intensity & 0.5 \\ \hline Gas methane sensor & MQ-4 CSS0013 & Detecting gas concentration & 2.0 \\ \hline Temperature sensor & DHT11 & Detecting the temperature above the gas stove & 1.6 \\ \hline IP camera & Yoose/1080P & Remote monitoring for kitchen fire usage & 23.0 \\ \hline Display & Winstar1602/16x2 & Display detection values of the environment & 3.0 \\ \hline LED alarm & & Generate alert flash to warm residents & 3.5 \\ \hline Audible alarm & K 845755 & Generate alarm sounds to warm residents & 1.0 \\ \hline Relay (3 pieces) & & Automatic switch & 3.0 \\ \hline Gas shutoff device & Sunwe/AD-704T & Automatically cut off, manually recover & 75.0 \\ \hline Door lock & Bird & Can be automatically opened by the system & 29.0 \\ \hline Miscellaneous hardware & & Wiring and other materials & 10.0 \\ \hline \multicolumn{3}{c}{Total} & 188.6 \\ \hline \hline \end{tabular} Software for the remote control of gas stove.  
\end{table} 
Table 2: The hardware used in this study. In this study, three control panels, Arduino, Webduino and D1 Mini, were used. Arduino sets up the connection and reads the sensor's detection data. It connects to the D1 Mini for notification, and activates the sound and flash alarm facility. It is also connected to the electrical appliance to open the door and close the gas main switch. These jobs do not require the use of Wi-Fi. This study uses Webduino to perform related remote invalidation controls. Because Webduino itself already has Wi-Fi communication capabilities, it can be connected to the network with a simple setup. In this study, the MQ-4 gas sensor was used. We used the gas produced from a lighter to simulate the liquefied petroleum gas or natural gas to trigger the gas sensor. Hot air blown from a hair dryer was used to simulate a high temperature to trigger the temperature sensor, and a mobile phone flashlight was used to simulate a strong light to trigger the flame detector.