You asked:

could a ph-sensitive color indicator be used to reveal the presence of a contaminant in a fluid that should be sterile

Sorry, I don't yet have an answer to that question.