Crank sensor
make sure the head is clean and the gap between the sensor and the lugs on the crank pully is no more than 0.3mm.
then check the wiring plug - clean all the shit out of it and use a cleaning fluid to remove the green and tarnish off the connectors.