Photosynthetic response to dynamic changes of light and air