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
Here's how to build an automatic sugarcane farm in Minecraft - WIN.gg
Sugar Rush! How to Make an Automatic Sugarcane Farm in Minecraft « Minecraft :: WonderHowTo