Using this function, you can turn the robot left or right in the arena to follow the next black line. You need to set the threshold of the IR and adjust the robot turning speed.
turnrobotusingir(‘left’, ‘next’)
Note: You need to set the threshold of the IR to adjust the robot's turning speed.