design and construction of motion detector