AB - Refactored to separate logic for detecting person from light control