Any code enforcement officer of the county or the county sheriff, or any of his or her deputies shall have the authority to inspect any business or premises licensed under this chapter during the hours in which the business or premises is open for business. These inspections shall be made for the purpose of verifying compliance with the requirements of this chapter and state law.