Implemented light sensor reading