contact sensor vs motion sensor