title: Reciving several Arduino sensors value through serial data into a C#/WPF app
body: <p>I'm using C# UI to control the Arduino board, and it works perfectly. I'm sending commands and values using a text protocol. But, I can't figure out how to receive multiple sensor values from Arduino to C#.</p>
  
  <p>From C# to Arduino, I'm using a ASCII chart in the beginning and end of the string to determine where the values should be stored in Arduino. In Arduino:</p>
  
  <pre><code>void serial_Sensitivity_command(){
      if (Serial.available()){
          while (Serial.available() &gt;= 0){
              if (inChar == SOFF){
                  dex1 = 0;
                  inData_sens[dex1] = '\0';
                  started1 = true;
                  ended1 = false;
              }
              else
                  if (inChar == EOFF){
                      ended1 = true;
                  }
                  else
                  {
                      if (dex1 &lt; 9){
                          inData_sens[dex1] = inChar;
                          dex1++;
                          inData_sens[dex1] = '\0';
                      }
                  }
  
                  if (started1 &amp;&amp; ended1){
                      sensitivity_gain = atoi(inData_sens);
                      started1 = false;
                      ended1 = false;
                      dex1 = 0;
                      inData_sens[dex1] = '\0';
                  }
              break;
          }
      }
  }
  </code></pre>
  
  <p>I want to route eight different values to each textblock in C#. Is there a similar way to use in C# like I did in Arduino?</p>
  
  <p>Or should I read string array and then use Substring?</p>