turn on switch with motion