A lighting fixture configured to illuminate an environment, characterized in thai the lighting fixture comprises: A) a memory configured to store a first transfer function mapping a first ambient light level (Ls) at a first position within the environment to a corresponding second ambient light level (Lf) at a second position within the environment, wherein the first position is at the lighting fixture and the second position is at a task height within the environment and located some distance from the first posilion, and wherein the relationship between the said first ambient light level (Ls) and the said second ambient light level is manually or automatically determined after installation of the lighting fixture in the environment; B) an ambient light sensor located at the first position within the environment and configured to measure an actual ambient light level (Ls) at the first position within the environment; C) at least one light source configured to generate a light output of the lighting fixture and D) a processor, communicatively coupled to the memory. the ambient light sensor and the at least one light source, and configured to: D1) use the transfer function stored in the memory to map the measured ambient light level (Ls) to an estimated ambient light level (Lf) at task height, D2) determine, based on the estimated ambient light level at task height and information about the lighting fixture's light output, an amount of daylight illuminating the environment and a change in the lighting fixture's light output necessary to achieve a desired ambient light level at task height: and D3) control the at least one light source so as to generate the change in the light output of the lighting fixture and provide the desired ambient light level at the second position within the environment. A) a memory configured to store a first transfer function mapping a first ambient light level (Ls) at a first position within the environment to a corresponding second ambient light level (Lf) at a second position within the environment, wherein the first position is at the lighting fixture and the second position is at a task height within the environment and located some distance from the first posilion, and wherein the relationship between the said first ambient light level (Ls) and the said second ambient light level is manually or automatically determined after installation of the lighting fixture in the environment; B) an ambient light sensor located at the first position within the environment and configured to measure an actual ambient light level (Ls) at the first position within the environment; C) at least one light source configured to generate a light output of the lighting fixture and D) a processor, communicatively coupled to the memory. the ambient light sensor and the at least one light source, and configured to: D1) use the transfer function stored in the memory to map the measured ambient light level (Ls) to an estimated ambient light level (Lf) at task height, D2) determine, based on the estimated ambient light level at task height and information about the lighting fixture's light output, an amount of daylight illuminating the environment and a change in the lighting fixture's light output necessary to achieve a desired ambient light level at task height: and D3) control the at least one light source so as to generate the change in the light output of the lighting fixture and provide the desired ambient light level at the second position within the environment. D1) use the transfer function stored in the memory to map the measured ambient light level (Ls) to an estimated ambient light level (Lf) at task height, D2) determine, based on the estimated ambient light level at task height and information about the lighting fixture's light output, an amount of daylight illuminating the environment and a change in the lighting fixture's light output necessary to achieve a desired ambient light level at task height: and D3) control the at least one light source so as to generate the change in the light output of the lighting fixture and provide the desired ambient light level at the second position within the environment.