design and construction of a dark activated switch pdf