light sensor now working, but still not fully merged