Check your spelling `Intensity` instead of `Intesity`. Consider using `switch` instead of `if-then-else`. Define `left`, `right` and `middle` as [integer] constants somewhere (and probably something more descriptive like `rightLED`, `leftLED` and `middleLED`) because your code is looking for an `int`, instead you give it something undefined like left, right and middle (and all).