Check the causes listed below. DPFE sensors fail often. The code may be coincidental to EGR tube replacement.
P0401 - EGR Flow Insufficient Detected
The EGR system is monitored during steady state driving conditions while the EGR is commanded on. The test fails when the signal from the DPF EGR sensor indicates that EGR flow is less than the desired minimum.
EGR valve stuck closed
EGR valve leaks vacuum
EGR flow path restricted
EGRVR circuit shorted to PWR
VREF open to D.P.F. EGR sensor
D.P.F. EGR sensor downstream hose off or plugged
EGRVR circuit open to PCM
VPWR open to EGRVR solenoid
D.P.F. EGR sensor hoses both off
D.P.F. EGR sensor hoses reversed
Damaged EGR orifice tube
Damaged EGRVR solenoid
Perform KOER self-test and look for DTC P1408 as an indication of a hard fault. If P1408 is not present, look for contamination, restrictions, leaks, and intermittents.