I’m trying to make the mBot ranger go forward when it “hears” something loud
and then after it “hears” again something - to go backward.
Here is the code:
But it goes always backwards. I added the wait 1 sec just in case that it “hears” the sound 2 times and executes the code after the second wait until.
thanks