Your landlord cannot just lock you out. You may also have the same rights as a tenant in an apartment. For example:
The more your situation looks like a regular rental situation, the more likely you are a tenant with the legal protections a tenant has—like a court process for evictions.
Your hotel or motel might actually be rental housing. The Department of Health inspects and licenses housing for temporary visitors, like hotels and motels. A licensed hotel or motel is required to post their license in the lobby. If your hotel or motel isn’t inspected or licensed, you might have even more protections under the Residential Landlord Tenant Act.