This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Ultrasonic Sensor HC-SR04 and Arduino Tutorial **/ | |
// defines pins numbers | |
const int trigPin = 9; | |
const int echoPin = 10; | |
// defines variables | |
long duration; | |
int distance; | |
void setup() { |