RPM counter with hall effect sensor arduino

Hello, I haven't been able to make a succesful code for counting rpm. Can someone give me a hand?

Can someone give me a hand?

Mr. Google can.