Read from light sensor code added