defines FLEX_PIN as a precompiled constant
Controls the servo based on the flex value