Reactive control using fuzzy logic