Frequenz counter and if 0 then ...

Hi
I use the Frequenz Counter library for monitoring a spindle. So far it works, but I'm unable to check if the frequency is zero like that:

if (Freq == 0) {
digitalWrite(InternalLed,HIGH);
}

the LED is always on! Is the problem in the "void Loop", because it's not handled with an intrrupt ?

Thanks for your help

Regards Lukacs

Follow the forum rules, and post the code.