The system continuously monitors room temperature and humidity through a DHT22 sensor and automatically controls an air conditioner and ventilation fan using thermostat logic with hysteresis control.