I don't know the brand of the ultrasonic sensor I bought here in the Philippines Sir. All I know is that it's center frequency is 40 khz. And for the accurate measurement, may be a deviation of +-1cm would be alright.
I'm concerned with the latter part of my code Sir. What I'm doing is getting the highest voltage peak of the received waves then get the time corresponding to that.