deadlywingz:
sorry i wasn't specific about which ping sensor i have. i have a 3 pin ping sensor by parallax not 4 pin........ which I'm sure makes a difference with the code..... once again thanks in advance for all help received
You also weren't specific on what "it doesn't work" means.
Read the "Read this before Posting a Programming Question" thread at the top of this forum.