analogWrite not functioning in if statement