public string InsertSensorPinCount(string template, int pinCount)
        {
            var code = "const int sensorPinCount = " + pinCount + ";";

              var parser = new Parser ();

              return parser.Insert (template, "SensorPinCount", code);
        }
        public string InsertDelay(string template, int delay)
        {
            var code = "const int interval = " + delay + ";";

            var parser = new Parser ();

            return parser.Insert (template, "Delay", code);
        }
        public string InsertPumpPins(string template, int[] pumpPins)
        {
            var codeSnippet = "const int pumpPins[] = {";

              foreach (var pin in pumpPins) {
            codeSnippet += pin + ",";
              }
              codeSnippet = codeSnippet.TrimEnd (',');
              codeSnippet += "};";

              var parser = new Parser ();

              return parser.Insert (template, "PumpPins", codeSnippet);
        }
        public string InsertThresholdPins(string template, int[] thresholdPins)
        {
            var codeSnippet = "int thresholdPins[] = {";

              foreach (var pin in thresholdPins) {
            codeSnippet += pin + ",";
              }
              codeSnippet = codeSnippet.TrimEnd (',');
              codeSnippet += "};";

              var parser = new Parser ();

              return parser.Insert (template, "ThresholdPins", codeSnippet);
        }
        public string InsertLedPins(string template, int[] sensorPins)
        {
            var code = "const int ledPins[] = {";

              foreach (var pin in sensorPins) {
            code += pin + ",";
              }
              code = code.TrimEnd (',');
              code += "};";

              var parser = new Parser ();

              return parser.Insert (template, "LedPins", code);
        }