rpm sensing with proximity sensor

I see. You say that HIGH is not a valid argument input, but yet is it on the reference snippet I posted. Any explanations?