| Algorithm 2 |
| 1: If the FMT temperature increase and LT temperature increase or decrease (depending on whether the temperature TLs is big or small, as shown in Figure 15a,b) of 10 °C ± 3 °C in less than 1 s, Then store the starting temperature TFs (for FMT) and TLs (for LT), respectively, Else go to point 1. |
| 2: If after 5 s the FMT temperature reaches TFi
and LT temperature reaches TLi or TLd, depending on whether the temperature TLs is big or small, Then set the indicator “Pot on the Burner” (PoB) to 1, Else go to the point 1. |
| 3: If the FMT temperatures decrease and LT temperatures decrease or increase of 10 °C ± 3 °C in less than 1 s, Then store the starting temperature TFs (for FMT) and TLs (for LT), respectively, Else go to point 3. |
| 4: If after 5 s the FMT temperature reaches TFd
and LT temperature reaches TLd or TLi, depending on whether the temperature TLs was big or small, Then set the indicator “Pot off the Burner” (PoB) to 0, Else go to the point 3. |
| 5: If POB is equal to 0, Then switch off the valve for a time of 1 s and switch on the LED and the buzzer for 2 s, which signals to the user that the gas flow is not turned off, after removing the pot. |
| 6: Go to point 1. |