Micra Se 2003 not starting when hot

Hi. There is any mechanic who can advice me what's going on with my wee car. I have a Nissan micra Se 2003. Do not starting sometimes. Usually when I am shopping and cone back after 15 minutes when engine is hot. When come back home next day starting from first time. I done computer check and there is crankshaft sensor fault. Crancshaft sensor exchange, fault come back again. Battery charging good. Did anyone had this problem before?