i think you will need to read more on ADC part of datasheet of PIC. it will teach you on how to configure the PIC pin as analog pin, then configure the internal adc to read analog sensor. u can find sample code of ADC to refer. the water sensor will give analog value, and you will need to use the PIC internal adc to read the value.