I have a question about the usage of the pattern "X varies from Y to Z". Does the pattern "X varies from Y to Z" mean that the value of the attribute "X" could change from "Y" to "Z". Or does it mean the value of attribute "X" changes when the value of some other attribute changes from "Y" to "Z"? I found the following the on web:
Example 1:
Iowa nest card data from 65 nests show that nest height varies from ground level to 50 inches, averaging about a foot from the ground.Example 2:
On a warm summer’s day, for example, air temperatures may vary by 16.5 °C (30 °F) from just above the ground to waist height.
In first example, it seems the value of "nest height" changes from ground level to 50 inches. But, in the second example, it seems the value of the air temperature changes when the value of the height of measurement changes from ground level to waist level".
So, is the usage of the pattern "X varies from Y to Z" wrong in one of the example sentences?