A smart ventilation system adjusts ventilation rates in time or by location in a building to be responsive to one or more of the following: occupancy, outdoor thermal and air quality conditions, electricity grid needs, direct sensing of contaminants, operation of other air moving and air cleaning systems.