I want to count human activity with ping)))
but I'm new with arduino and don't now how to.
Can you send my a code or a technical sketch.
A ping sensor measures distance. It doesn't care whether that distance is to a dog, a tree, a brick wall, or a human.The first thing that you need to do is to be able to get distances from the sensor. There are plenty of examples around for doing that.Then, you have to decide what that distance means. Do you want to increment the counter each time the distance it measures is less than some value? Do you want to increment the counter only once when the distance is less than some value, ignoring readings until a reading above that threshold happens?What will you do with that counter?
Have you tried here?