A controller for detecting an open window comprising a processor and a memory, the processor being in operative communication with the memory and being configured to: read a predetermined percentage and values indicative of a temperature set point and indicative of an idle temperature and indicative of a temperature threshold and indicative of an outside temperature as designed and indicative of a position threshold from the memory; and compare the value indicative of the temperature set point to the value indicative of the idle temperature and produce a first indication if the value indicative of the temperature set point is the same as or substantially the same as the value indicative of the idle temperature; and/or compare the value indicative of the outside temperature as designed to the value indicative of the temperature threshold and produce a second indication if the value indicative of the outside temperature as designed is less than the value indicative of the temperature threshold; and record a first signal indicative of a valve position and produce a first measure from the first signal; and compare the first measure to the value indicative of the position threshold; and if the first measure is larger than or equal to the value indicative of the position threshold: record a series of signals indicative of valve positions during a predetermined period and produce a series of measures from the series of signals and estimate a mean of the series of measures; and after the predetermined period, record a second signal indicative of a valve position and produce a second measure from the second signal; and compare the second measure to the value indicative of the position threshold and produce a third indication if the second measure is larger than or equal to the value indicative of the position threshold; and compare the second measure to the mean and produce a fourth indication if the second measure is larger than the mean by the predetermined percentage; and if at least three indications of the first to fourth indications are produced, produce and transmit a signal indicative of an open window. read a predetermined percentage and values indicative of a temperature set point and indicative of an idle temperature and indicative of a temperature threshold and indicative of an outside temperature as designed and indicative of a position threshold from the memory; and compare the value indicative of the temperature set point to the value indicative of the idle temperature and produce a first indication if the value indicative of the temperature set point is the same as or substantially the same as the value indicative of the idle temperature; and/or compare the value indicative of the outside temperature as designed to the value indicative of the temperature threshold and produce a second indication if the value indicative of the outside temperature as designed is less than the value indicative of the temperature threshold; and record a first signal indicative of a valve position and produce a first measure from the first signal; and compare the first measure to the value indicative of the position threshold; and if the first measure is larger than or equal to the value indicative of the position threshold: record a series of signals indicative of valve positions during a predetermined period and produce a series of measures from the series of signals and estimate a mean of the series of measures; and after the predetermined period, record a second signal indicative of a valve position and produce a second measure from the second signal; and compare the second measure to the value indicative of the position threshold and produce a third indication if the second measure is larger than or equal to the value indicative of the position threshold; and compare the second measure to the mean and produce a fourth indication if the second measure is larger than the mean by the predetermined percentage; and if at least three indications of the first to fourth indications are produced, produce and transmit a signal indicative of an open window. record a series of signals indicative of valve positions during a predetermined period and produce a series of measures from the series of signals and estimate a mean of the series of measures; and after the predetermined period, record a second signal indicative of a valve position and produce a second measure from the second signal; and compare the second measure to the value indicative of the position threshold and produce a third indication if the second measure is larger than or equal to the value indicative of the position threshold; and compare the second measure to the mean and produce a fourth indication if the second measure is larger than the mean by the predetermined percentage; and if at least three indications of the first to fourth indications are produced, produce and transmit a signal indicative of an open window.