The warning lights only come on for a split second, The car gives a "cough" then runs fine again for a little while then does it again, I have tried the OBD2 scanner trick but since it is only a split second it doesnt come up with anything hence me changing out sensors etc to try that route, Its got to be an electrical fault like you mention but its one of those head scratchers.
Appears that you have thrown the "Parts Cannon" at this problem. This is an expensive approach. Better approach is to use diagnostics to actually determine the causes then start the eliminations to finally resolve the issue. Appears to be an intermittent issue caused by a bad electrical connection to the sensor instead of the actual sensor.
Have you used an OBDII scanner to determine if there are any error codes, especially pending codes? It may be necessary to do a scan when those warning lights are displaying.