Would need to check for codes. Can check by using a digital multimeter with a tone built in, or a 12V resistor LED
Put meter or LED across pins E and F of the DLC connector (on top motor near ECM with a cap on it). Put paper clip or other wire across A and B. Turn key ON (do not start) and count flashes. Flash, pause, flash, flash, etc
View attachment 380166
The oil gauge uses a sender which has nothing to do with the ECM. There is another sender which does not go to the gauge but does go to ECM. Both senders are normally connected together with a Tee fitting, on the block next to where remote oil filter is connected
Have you verified oil pressure with a mechanical hand held gauge?