I want to control the fan so that it starts when rising in temperature, and that it stops when falling in temperature. How can I do it?
By using a compare instruction, it is possible to create the logic that turns the fan on when the temperature gets the preset value or more and turns it off when the temperature gets less than the preset value.