First, sensors do not cause misfires.
Misfires are caused by things that affect only single cylinders. My guess is that you have a spark plug resistor bad. This is easily seen with a secondary ignition oscilliscope. That is the first step!!!
If you don't have one or know how to evaluate it, you can spend a bunch for a set of wires. But of course it could be other things.
Bosch Master, ASE Master, L1
33 years MB technician