title: Arduino: error: expected unqualified-id before 'if' (using ping sensor)
body: <p>I am having issues with a script I modified.  I'm getting an "
  Ping_Library_Example:9: error: expected unqualified-id before 'if'"<br>
  I'm sure I have some little syntax error somewhere, any ideas what?
  The orrigional script, by the way, has "void loop" instead of "if".  This same probably also occurs when using when, with the same error.  Any ideas?</p>
  
  <pre><code>#include &lt;Ping.h&gt;
  
  Ping ping = Ping(13,74,29);
  
  void setup(){
    Serial.begin(115200);
  }
  
  if(digitalRead == HIGH){
    ping.fire();
    Serial.print("Microseconds: ");
    Serial.print(ping.microseconds());
    Serial.print(" | Inches ");
    Serial.print(ping.inches());
    Serial.print(" | Centimeters: ");
    Serial.print(ping.centimeters());
    Serial.println();
  }
  </code></pre>