added light sense demo code