added a judgement for channel 0 out of range to avoid invalid lux calculated.