I fixed it. The problem was that the "else" command only related to the second condition. That means even if the first condition is true, the "else" condition set the values of the motors to LOW because the second condition wasnt true.
Thanks for your help ![]()