Text this: Optimal tuning of bacterial sensing potential