Light sensor working