I have a bot that started as an object avoid-er, I have since switched it to motion control via my android smart phone. Now I want to make it so I can switch between the two by pushing m for motion or a for avoidance. When I try to use the Serial.read or Serial.find it simply doesn't work. When I set the variable avoid to Serial.find("a"), it never switches just starts the loop over.
See the attached code. Any advice will be greatly appreciated.