i want to simply count the number of times that the reading goes above X inches and Y centimeters
if (inches > X && cm > Y) count++;
how this code displays the distance?
duration = pulseIn(pingPin, HIGH); // convert the time into a distance inches = microsecondsToInches(duration); Serial.print(inches);
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16