I want to make the above code to operate the lamp. The sensor is IR position control. When each sensor A0~A3 is detected, A0 = 14 LED ON , A1 = 15 LED ON. I want to turn on LED2 separately when all of A0~A3 are LED ON. Also, I want to turn on LED 3 when all of A4~A7 are LED ON, and turn on LED 4 when A8-A11 is on. Lastly, I want to turn on RELAY 5 when all A0~A11 are LED ON, but I want to ask how to proceed with the code. I've never done any coding before, so I'm at a loss. I need your help.