added electronics and detection for switch (gear channel) and set it up to switch a relay