The logical representation of the software code has been presented in the flowchart form. Fig 9 shows the flowchart of the logic implemented in the modeled system. The temperature is read from the temperature sensor and the condition is checked and the following processes are done