The MTA suspended a city transit supervisor for 30 days without pay for moonlighting — running his own electronics repair shop on state time for up to three years, the state’s ethics watchdog agency announced Wednesday.

Gustavo Espinal, in a settlement with the Joint Commission on Public Ethics, also admitted that he violated the state Public Officers Law for failing to report his outside income from “Mega Repair” in financial disclosure reports he filed with the state from 2015 through 2018.

He’s deputy superintendent of the NYC Transit Division’s Woodside-based Central Electronics Shop.

“From 2015 through 2018, while employed by the MTA, he owned Mega. During this period [Espinal] conducted Mega business on State time by regularly answering phone calls on his private cellphone line related to Mega business,” the settlement released by JCOPE Wednesday said.

Aside from the suspension costing $8,500 in pay, Espinal also agreed to divested his interest from the firm, according to the settlement.

Espinal is still an MTA employee according to JCOPE.