Hi! I'm making a project for a social distancing sensor and this is the link that I'm using. A Device Which Help Us To Maintain Social Distancing | Arduino Project Hub. However, for some reason, the sensor won't stop beeping no matter how far away it is from an object. Is there any way I can fix this? Also, is there a way to track the number of times it beeps internally and can the sensor only sense moving objects/heat instead of everything in front of it?
Thanks!
TheMemberFormerlyKnownAsAWOL:
The sensor operates at 40kHz; I'm surprised you can hear it at all.
Yes I can definitely hear it. It is very loud. Can you please take a look at the link that I had posted before? I followed the drawing made at the bottom of the site and used that code. However, the 5v buzzer won't stop beeping/being loud. I found the problem. When I go to serial monitor, the distance is always 0. I don't think the sensor is coded right.