It's definitely easier to tell if something is in a room than it is to tell if nothing is in a room. And sensors still fail at that. Timers would probably be better, since you don't need disinfection every time a room is used.
If you know the office building will be empty every day at 2AM have the lights do their work between 2-3 every morning.