Valve regulates flow through housing enclosing heat exchanger