added electronics and detection for switch (gear channel) and set it up to switch a relay
changed from pin 13 to avoid rapid relay switching