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
8 Automatic Farms [Redstone] | Minecraft PE Maps
Minecraft 1.19 EASY Auto Wheat Farm Tutorial! [Works with carrots, potato, beetroot] [REMAKE] - YouTube
How to Create Fully Automatic Unlimited Chicken Farm « Minecraft :: WonderHowTo