Glad you managed to sort the running issue Andy
As for the sensor I would leave it alone if its running fine and just reconnect the plug.
The other component, I'm not exactly sure what it is but more than likely emissions related.
Again, if the vehicle is running fine then I would be more tempted to leave it be