Arduino ir, my first project!

Thanks for sharing!

You can shorten some of the code with ? : condition(?: (conditional) / Reference / Processing.org)
For instance:

     digitalWrite(led5,(results.value==16674959)?HIGH:LOW);
     digitalWrite(led5,(results.value==16650479)?LOW:HIGH);

Even though it's a bit more confusing