Cube Detection

Definitely use either line sensor, if you can shield it well, or better, a limit switch.

If you look at Sacramento - a lot of really good teams were royally screwed because of relying on line sensors or anything that depends on the outside light level.