To ensure that your recessed lighting installation is up to code, it is recommended that you hire a licensed electrician who is familiar with the local building codes and regulations. They will be able to install the lights safely and ensure that they are properly wired and grounded.