Trouble Using Arduino as a Timed SPDT switch