HC-SR04 Ultrasonic Sensor example
User submitted example for a HC-SR04 Ultrasonic Sensor #define echoPin 7 // Echo Pin #define trigPin 8 // Trigger Pin long duration, distance; // Duration used to calculate distance…
User submitted example for a HC-SR04 Ultrasonic Sensor #define echoPin 7 // Echo Pin #define trigPin 8 // Trigger Pin long duration, distance; // Duration used to calculate distance…