construction of motion detector pdf