initial work on light sensor