That could well be the sensor or the small hose connecting it to DPF - probably old and cracked. Those are relatively cheap parts and not hard to replace. No coding/resetting needed.
If you decide to change it,buy original hose,and don't listen mechanics offering a cheap cut hose from somewhere else. The hose is connected to DPF and gasses with temperatures more than 600 deg.C.