Skip to content

Instantly share code, notes, and snippets.

View gjt211's full-sized avatar
🎯
Focusing

gjt211 gjt211

🎯
Focusing
View GitHub Profile
/** 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() {