This robot uses IR sensors to detect edges and avoid falling off platforms. It has two IR sensors, one on each side, that detect light reflecting off the platform. When an edge is detected, the comparator sends a signal to the microcontroller, which makes the robot turn away from the edge by only powering the motor on the opposite side. This allows the robot to continuously move around the platform without falling.