A system for regulating the amount of outdoor air that is introduced into a building determines characteristics of the outdoor air using sensor inputs. The system uses extremum seeking control logic to vary the flow of outdoor air provided into the building in response to the cooling load determinations.