Improve light sensor example