This code can likely be optimized but it functions to the performance needed, so there is not a great need to optimize every part. The code for the robot is written in Arduino C++, and is compiled and uploaded to the ESP8266-12e that acts as the ‘brain’ of the robot. […]