Skip to main content
Editing Step 6 —

Step Type:

Drag to rearrange

This section establishes the roles of the trigPin and echoPin

pinMode (trigPin, OUTPUT);

pinMode (echoPin, INPUT);

Serial.begin(9600); //begins the loops following the set-up

Your contributions are licensed under the open source Creative Commons license.