mmmm thank you for your answer.
I should explain clearly my constraints.
When sensor is on, I would like to turn on 2-3 lights, and when sensor turns off, I would like to turn off 2-3 lights. (it might be 2 or 3 lights , I am still not decided)
But let's say for example, I have this case:
Sensor is Off
Light 1, 2, 3 are all Off.
Then I turn on manually Light 1 and 3.
Then When Sensor is On, it will turn On only Light 2 (because light 1 and 3 were turned on before)
Then when Sensor is turned Off, it will turn Off Light 1,2 and 3. (I would like it not to turn off the Light 1 and 3 if they previous status was On). It should be turned Off only if it was turned On by the sensor.
Makes sense?