First get the salt level correct in the pool. Take a water sample to the local pool store that Does not test with test strips, and have them test it for salt (salinity). Once that is done, then see if you still have the codes. 186 and 172 are sensor fault codes. If the codes persist, the sensor will need to be replaced.

Best price will be somewhere on-line, compared to the local guy.