I have a 1995 ford windstar 3.8 engine?

I replaced the ingnition coil plugs and wires and it ran like an champ and it is still running okay but it has an camsaft position sensor code popped up and a cylandar 2 missfire we just replaced the plugs three months ago could that sensor be throwing things off it still runs fine and my other problem is the door aja light keeps beeping on and lights on even though the door is closed

Yeah, thats the thing that looks like a distributor on that engine. Also one of your door switches is closing the circuit, id guess side or rear door.