reads light input