arduino mega sonar and relay problem

Please read and follow the directions in the "How to use this forum" post.

Post the code properly, and describe the problem.