How does air temperature affect water temperature?

Air temperature greatly affects water temperature. When the sun is strong, it increases the temperature of the air and water. On the other hand, when the sun is less intense, the temperature of the air and water decreases.