TolpuddleSartre:
if ((duration1 + duration2 + duration3) <= 36)My Russian isn't what it was, but I'm guessing that that line should read
if ((left + line + right) <= 36)
Yes, you are right, but here I was faced with a small problem, the fact is that I needed to add lengths to the sides that measured the ultrasonic sensor, but I did not know how to write this side so that the program realized that it was the "Length of the measured side" can you tell me how to do this?