title: ARDUINO pin is constantly changing from HIGH to LOW?
body: <p>I used this code to check the state of Arduino pin 8.
  To see if the pin is High or Low but my output continuously changes from high to low.</p>
  
  <p>I am not connecting anything to pin 8 while running this code.
  </p>
  
  <pre><code>const int Pin = 8; 
  int Reading=0;
  
  void setup() {
    Serial.begin(9600);
    delay(2000);
    pinMode(Pin, INPUT); 
  }
  
  void loop() {
    Reading = digitalRead(Pin); 
    if(Reading == HIGH)
    {
      Serial.println("HIGH");
      delay(2000);
    }
  
    if(Reading == LOW)
    {
      Serial.println("LOW");
      delay(2000);
    }
  
  }
  </code></pre>
  
  <p>But my Output Comes like this:
  OUTPUT:</p>
  
  <pre><code>HIGH
  HIGH
  LOW
  LOW
  HIGH
  HIGH
  LOW
  LOW
  HIGH
  HIGH
  LOW
  LOW
  HIGH
  HIGH
  LOW
  LOW
  </code></pre>
  
  <p>Don't know what to do ??</p>