Pressure is the weight of the atmosphere and varies with elevation.
Temperature is the amount of heat available in the atmosphere and depends on the balance of incoming solar energy and outgoing longwave radiation. Surface properties, including albedo and specific heat, affect the temperature of both the terrain and the lower atmosphere. Clouds, smoke, and pollution also affect surface and atmospheric temperatures.