Any number of potential sources could have cause the problem. Water in the connector from the inside start/stop switch, governor, run sensor, oil pressure sensor,,,,. Since it now works without a crystal ball no way of knowing.
2006 Hurricane 31D built on a 2006 Ford F53