While Roomba is cleaning, it avoids steps (or any other kind of drop-off) using four infrared sensors on the front underside of the unit. These cliff sensors constantly send out infrared signals, and Roomba expects them to immediately bounce back. If it's approaching a cliff, the signals all of a sudden get lost. This is how Roomba knows to head the other way