Electrical Safety Foundation International (ESFI) strongly recommends that a licensed electrician install home generators to ensure they meet all local electrical codes.
Also, make sure your generator is properly grounded in accordance with the manufacturer’s instructions.