#include <HCSR04.h>
HCSR04 hc(2, 3) // initialisation class HCSR04 (TRIG PIN , ECHO PIN)
void setup() {
Serial.begin(9600); // put your setup code here, to run once:
}
void loop() {
Serial.println(hc.dist());// put your main code here, to run repeatedly:
// RETURN CURRENT distance in serial
delay(60);
}