#include #include /*************************************************** /MINDS-i Calibration. mymindsi.com / /Ping Calibration / /This Ping Calibration code is used to test /and adjust your ping sensor as well as to establish /the measurement that it’s reading. Because each sensor /varies, this calibration is necessary before applying /it in your code to avoid malfunctions. / /To learn more about the ping sensor visit: /http://arduino.cc/en/Tutorial/Ping /***************************************************/ void setup() { Serial.begin(9600); //start a serial connection } void loop() { Serial.println( getPing(7) ); //send the value read by the ping sensor out serial }