Bot Board / Ping sensor issues

I am having issues with my basic atom system. I’ve been trying to figure out the issue for about a week now with a couple of friends but nothing seems to work.
The issue i have is when i execute my code the output reads “Warning, sensor is not working” and fails to give me any distances.
My friend gave the negitive wire a little rub and it output A distance, but only one, then it read the Warning again.
I believe the code is correct because it was working 2 weeks ago

Any ideas? Possibly a hardware issue?

If you have spent any time reading through these forums then you have to know that almost every time someone makes a general request like this for help the first few replies are to post your code that isn’t working, post an accurate wiring diagram of what you have hooked up, and if possible pictures of your assembly so others can verify your work and determine what the code is really doing. :confused: