Device for automated spectrophotometric set-point titrations comprising an automatic correction for turbidity and dilution errors