So I am working on a project that uses a 12v dc motor, the motor should move only when the Limit Switch is not pressed in then stop when pressed, and move again when it is released., I have tried various connections but I cant seem to make them work somehow attached is a connection I tried that I found and want to implement it on my circuit and instead of the 6pin switch instead uses a 2channel relay, where should the connections of the relay be???? 


