Where is the code that you are using to get any data from the sensor?
But is it possible to add 1 to the totalcount when the distance is to short.
QuoteBut is it possible to add 1 to the totalcount when the distance is to short.Of course. The question is whether you want to increment the counter repeatedly if the distance goes below some value, or only once each time the distance goes below some value?If this is for a elementary school, you can be sure that someone will just play games until the count goes high enough.
When a clot goes along the Ping))), the ping))) wil activate a scanner and a light but this is impossible, we thought we better just count clots of they pass the ping)))
Thank you. I have read about a code: if (........==.......). Can i use this code?
So: if(..........<40) activate led.