Light intensity detection