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 InsertSensorPins(string template, int[] sensorPins)
        {
            var codeSnippet = "const int sensorPins[] = {";

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

              var parser = new Parser ();

              return parser.Insert (template, "SensorPins", 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);
        }