結果 : light sensor function