title: Serial1/2/3 on Arduino Mega not working as expected
body: <p>I want to connect a Bluetooth HC-05 module to Arduino Mega using serial pins other than <code>Serial</code> (tx0, rx0), because I want to use <code>Serial</code> for debugging.</p>
  
  <p>Now the problem is, that when I connect the module to the <code>Serial</code> (tx0, rx0), it works fine, but when I connect it to other serials (<code>Serial1/2/3</code>), it returns semi-random values.</p>
  
  <pre class="lang-cpp prettyprint-override"><code>void setup() {
    Serial.begin(9600);
    Serial2.begin(9600);
  }
  
  void loop() {
    while(Serial2.available ()) {
      Serial.println(Serial2.read());
    }
  }
  </code></pre>
  
  <p>I entered the input:</p>
  
  <pre><code>a
  s
  d
  f
  g
  </code></pre>
  
  <p>And the output I get is:</p>
  
  <pre><code>0
  64
  0
  0
  6
  </code></pre>
  
  <p>I have tried putting <code>if{}</code> instead of <code>while{}</code>, but it still outputs the same values. What am I doing wrong here?</p>