Arduino has problems comparing two numbers???

Here's your problem:

dagoston93:

        if(setting > 5);

The semicolon at the end means that if setting is greater than 5 do nothing, then run the code in the following braces always. Remove the semicolon and the code should work as expected.