Answer
Humidity also affects air density. Use the relevant density altitude or manufacturer performance method rather than relying on temperature and elevation alone.
Explanation
Moist air is less dense than dry air at the same pressure and temperature, though temperature and elevation are often the larger effects.