I hate when that happens, you replace something and the vehicle doesn't run right. Assuming that the mechanic did everything correctly, maybe the new crankshaft sensor is defective, maybe there is a loose connection from all that work done. Possibly just a loose ground, but a lot of forum members have stated problem emulating from the engine compartment fuse box, when it is disturbed. Sometimes the connections are not solid, make sure the connections there are good and tight.
After that, just check your VVT Solenoids , make sure the screens are clean and that they operate with a 9V battery while you have them out.
Here is the wiring to those components. Adobe Acrobat
After that, just check your VVT Solenoids , make sure the screens are clean and that they operate with a 9V battery while you have them out.
Here is the wiring to those components. Adobe Acrobat