DTC code P0054 OBDII is stored because the PCM (Powertrain Control Module) detects a resistance outside the established parameters in the Oxygen Sensor (O2), control circuit.
Although this code indicates a problem with the resistance, high or low resistance problems can occur in the wiring or even in the PCM. But most likely the cause of the failure is a problem with the internal resistance of the O2 sensor. Normally the resistance in this circuit is expected to be 8 ohms or close, if a variation of that value occurs, the Check Engine light will illuminate.