In the following test, I have incorporated the light follow sketch into the general grisbot sketch. In other words, by using the graphical user interface written in Scratch, the user can either program the robot for following paths or for following light — without having to use the Arduino platform to download the respective sketches into the microcontroller.
According to the Arduino IDE, my program has so far used only a quarter of the capacity of the ATMega328 chip, so there is plenty of room for more procedures.