Lost in my code

Im am trying to program a multi task robot and I am having errors. I am trying to make a program with different parts put together. Can some one help me and pointing my errors.
My folder under Documents is : L298N-Motor-Demo and the .ino file is L298N-Motor-Demo.

Any help would be greatly appreciated.

Thanks,

Josh

L298N-Motor-Demo.ino (6.15 KB)

Start by posting your code and any error messages as suggested in Read this before posting a programming question

  1. You have functions defined within your loop() function.
  2. You try to call a function Led() which is not defined.
  3. You try to call function hcsr04() which is commented out.
  4. In your commented out function hcsr04() you try to return a value but the function is declared with a void return value.