NOT SURE WHY YOU disconnected the battery but anyway there's only one sensor on an exhaust right at the front its the lambor sensor monitors the gases from engine and it could give a rough idle ...but think its something else making it run poorly think the exhaust and poor running are just coincidence
paul