A system is configured to discriminate amongst different environments based in part on characteristics of ambient light. Ambient light intensity is measured using a light-sensitive element configured to generate an output signal indicative of an intensity of light incident on the light-sensitive element. A controller is configured to obtain a set of ambient light measurements using the light-sensitive element, and determine that the measurements correspond to a particular ambient light profile. The particular ambient light profile can be one of multiple ambient light profiles that each correspond to a different environment and/or context.