Tutorial in my channel!

The storage was designed for a specific farm, but it can be adapted to any other.

If you are going to make the storage for another farm, you need to add a hopper clock with 38 items in the part where the comparator lines are.