My car goes off on motion, after several attempt of starting it will start on 1998 Honda Odyssey

This happens in the afternoon or after long hours of driving. A technician suggested replacing camshaft sensor. Pls advice

Asked by for the 1998 Honda Odyssey
scan codes and post so we can adv and don't guess it gets expensive
1 more answer
I would check distributor if it has one because hondas are bad for breaking down when it gets hot