using arduino to open and close a circuit