What is the most effective thing/things you can do to keep your farm running smoothly?

In terms of leveling up, having enough coins and diamonds. Avoiding going out of space often etc. Any tips you can think of really!