It was previously believed that our pupil size was only affected by three things: light, focusing on nearby objects and cognitive effects.
Pupillary light reflex can be inhibited by multisensory signals Aug 11, 2021 Pupil size during very light exercise predicts benefits to prefrontal function, study shows ...
The amount of light entering the eye is controlled by a reflex action. The size of the pupil changes in response to bright or dim light. This is controlled by the muscles of the iris.