Neat, but what happens if someone else comes into the room and triggers the motion sensor? do all the lights turn off while your still in the room?
Perhaps you could use 2 motion sensors to determine if a person is entering or exiting the room, and to maintain a number of persons in room count. When the count is =>1 then lights on, if count <=0 then lights off, that way it won't matter if 10 people enter the room, the lights will stay on until the room is empty of people = )