how to wire a motion detector