73 Pa.C.S. § 6701
A township may manufacture electricity by means of a hydroelectric generating facility owned or operated by the township for the use of the inhabitants of the township. A township owning or operating a hydroelectric generating facility may make contracts for the sale of electricity to persons engaged in the business of the manufacture or sale of electricity.