I need your help in checking my code.Urgent please.

larryd:
pulseIn(pin, value, timeout)
timeout (optional): the number of microseconds to wait for the pulse to start; default is one second (unsigned long)

Thank you very much for explaining! I did not even know about it!