design and construction of infrared switch