title: Arduino store variable by serial read rfid
body: <p>I want to store the same that is displayed in the Serial Monitor in a variable, because after that i can send the value to a Database.
  That's the code:</p>
  
  <pre><code>if (bytesread == 12) {  
   for (i=0; i&lt;5; i++) {
      if (code[i] &lt; 16) Serial.print("0");
         Serial.print(code[i], HEX);
      }
      Serial.println();
    }
  </code></pre>
  
  <p>Is Displayed at Serial Monitor the tag that i scan:</p>
  
  <pre><code>04007E4985
  </code></pre>
  
  <p>I want to store the tag value in a variable like:</p>
  
  <pre><code>    tag = code[i];
  </code></pre>
  
  <p>Some sugestion?</p>