coding

I have a project to make a smart home system. I made a wide range of functions, such as doorbell, remote, fan control etc. All functions were tested and feasible. However, I don’t know how to combine a variety of coding in one Arduino code?
Thank you very much.