The experiment “Light” just gives the raw data from the phone’s ambient light sensor.
Archives: Experiments
Use the light sensor to measure times. You can set a threshold and determine the duration of brighter/darker states or the time between two bright/dark states.