Integrating the light sensor