This simple three-block robot advances until the Distance Cubelet moves beyond the edge of the surface it's on, then stops. You can build this robot with just the Cubelets in the KT06 kit.
Battery Block
Distance Block
Drive Block
Put the Drive Cubelet in the middle to help balance the robot's weight and give the Drive Cubelet better traction.
Put the Distance Cubelet facing down, so it will sense the edge.
Note how the two "eyes" on the Distance Cubelet line up with the robot.
Make sure the Drive Cubelet moves the robot forward, with the Distance Cubelet at the "head" and the Battery at the "tail".
If the robot doesn't stop at the edge, try turning the Distance Cubelet around 180 degrees (still facing down).
Also: resist the temptation to put your hands at the edge to catch the robot. This is likely to confuse it.
Simple Edge Detector
Simple Edge Detector robot uses only three Cubelets.