Most states have adopted some form of the National Electrical Safety Code, which sets standards for utility companies in order to protect the public. They include measures and requirements related to the maintenance of power lines and other equipment, power line height requirements, the location of lines to buildings, and more.