Text this: Deliberative architecture for smart sensors in the filtering operation of a water purification plant