HMOs Landlord lives in property

I’m a Landlord of an HMO. I also live in the house on one separate floor.
What kind of tenancy agreement are best to have? ASTs?