This relates to an electronic device with dynamically reconfigurable apertures to account for different skin types, usage conditions, and environmental conditions and methods for measuring the user's physiological signals. The device can include one or more light emitters, one or more light sensors, and a material whose optical properties can be changed in one or more locations to adjust the optical path and the effective separation distances between the one or more light emitters and one or more light sensors or the size, location, or shape of the one or more dynamically reconfigurable apertures. In some examples, the material can be a liquid crystal material, MEMS shutter layer, or light guide, which can form the one or more dynamically reconfigurable apertures. In some examples, the light emitters or light sensors or both can be an array of individually addressable optical components.