Tacho, I need an output at specified rpm range.

Hi All

Can I please ask for help with the following.

I have a Tacho sketch working but I want to add an output for an led to be ON between 0 and 200 rpm, and to go off at a above 200 rpm.
I have tried the following but it only works once then I have to reset power.

if(RPM>0 && RPM<200)
digitalWrite(LED, HIGH);

Have you tried asking your question at: http://snippets-r-us.com?

if.....
else......

Thank For your quick reply.
I have tried the following but it only works once, then the led stays on all the time.
Then I have to reset the power.

 if(RPM>0 && RPM<200)
  digitalWrite(LED, HIGH);
   else
   if(RPM>200 && RPM<1000) 
  digitalWrite(LED, LOW);

Well, if that's all the code you've got, that's all the advice I can offer.

I will upload all the code when I get back home