FIG. 8 depicts a flowchart of an example of a cooling method according to some embodiments. In step 802, a sensor system (e.g., sensor system 180) housed in an enclosure (e.g., enclosure 200, 300, 400, 500) determines a speed of a vehicle, an internal temperature of an enclosure, an external temperature, and a wind speed. The sensor system provides the determined inputs to a controller (e.g., controller 196, 252, 352, 452, 552). In step 804, the controller adjusts a height of a deflector (e.g., deflector 116, 126, 136, 146, 156, 166, 176) based on the speed of the vehicle, the internal temperature of the enclosure, the external temperature, a difference between the internal temperature of the enclosure and the external temperature, or the wind speed. The controller may adjust the height of the deflector based on any one or any combination of the aforementioned factors. In step 806, the controller may adjust a rotation speed of a fan (e.g., fan 244, 344, 444, 544) based on the height of the deflector.