1. As used in this section:

 a. “Facility” means a county jail, municipal holding facility, secure facility for the detention or custody of juveniles, community-based correctional facility, or institution under the management of the department of corrections.
 b. “Unmanned aerial vehicle” means a vehicle or device that uses aerodynamic forces to achieve flight and is piloted remotely.
 2. A person shall not operate an unmanned aerial vehicle knowing that the unmanned aerial vehicle is operating in, on, or above a facility and any contiguous real property comprising the surrounding grounds of the facility, unless the unmanned aerial vehicle is operated by a law enforcement agency or the person has permission from the authority in charge of the facility to operate an unmanned aerial vehicle in, on, or above such facility.
 3. This section does not apply to an unmanned aerial vehicle while operating for commercial use in compliance with federal aviation administration regulations, authorizations, or exemptions.
 4. A person who violates this section commits a class “D” felony.