2012 Toyota RAV4 engine stops when driving

The engine Stops while car is moving

The problem might be caused by faulty crankshaft position sensor.

https://www.rockauto.com/en/catalog/toyota,2012,rav4,3.5l+v6,1503725,ignition,crankshaft+position+sensor,7196

If the computer loses the signal from this sensor, the computer see’s no reason to operate the ignition and fuel systems. so the engine shuts off.

Tester