The Metropolitan Transportation Authority announced Friday that the Long Island Rail Road and Metro-North Commuter Railroad plan to install equipment capable of detecting and instantly reporting defects or damage or overheating in wheels and other equipment as well as those of freight trains using the same tracks.