Greenhouse opens its windows when the sensor finds the temperature and weather data to be high, then closing them when it gets data that it will be cold.
From this series