In two separate threads program the robot 1. to follow a line; 2. to detect if someone is pushing it away, and then start an alarm. The alarm could be a sound alarm, light, something on the screen or a combination.