Light Sensor Research and Implementation