Here is my fully automatic sugar cane farm. It uses an RFtools sensor to tell when the sugar cane is 3 blocks tall, then it pushes the blocks out behind the sugar
Sugar Rush! How to Make an Automatic Sugarcane Farm in Minecraft « Minecraft :: WonderHowTo