Fixed light sensor offset not working correctly.