Welcome to your first post on the board.
104.3 Right of entry. Where it is necessary to make an inspection to enforce the provisions of this code, or whenever the code official has reasonable cause to believe that there exists in a structure or upon a premises a condition in violation of this code, the code official is authorized to enter the structure or premises at reasonable times to inspect or perform the duties imposed by this code, provided that if such structure or premises is occupied the code official shall present credentials to the occupant and request entry. If such structure or premises is unoccupied, the code official shall first make a reasonable effort to locate the owner or other person having charge or control of the structure or premises and request entry. If entry is refused, the code official shall have recourse to the remedies provided by law to secure entry.
If you want to come on my property, you darn well better get my permission or have a warrant.