Bi-directional motion sensor