The county code enforcement office shall have the right to inspect any solar farm in the unincorporated areas of the county without notice if there is a risk of immediate harm or injury to person or property. If there is no risk of immediate harm or injury to person or property, the county code enforcement office shall have the right to inspect any solar farm upon making reasonable efforts to notify the owners or operators 24 hours in advance of the inspection.