Thank you so much for the responses so far.
What I mean by the same value is that no matter the distance away from the sensor I get the same number, so my terminal looks like:
Code:
Distance1:1122 Time1: 875
Distance1:1122 Time1: 875
Distance1:1122 Time1: 875
Distance1:1122 Time1: 875
No matter the distance of my object. I am only using the timer for this so its ok, I took out the code for 1&2. They gave me back a time, and a distance that was accurate to about .5mm or so. Yeah, I was getting something around 24000 when there was nothing. I used that floating point because my shift method wasn't working. Thanks Kevin for pointing that out!
I am only using one sensor right now (sensor 3). I will make a few corrections right now, test it again, and re-upload my code to the same link.
Okay, its updated with a few minor tweaks. I still can't get this though. More testing to be done...
Okay, I see your edit. I did have my code having only one digital io, but that was failing worse then this one is.