Set point titration for the measurement of bacterial activity and substrates concentration