How to used analog pin setting the ping sensor?

Techinically, Port C is digital pins with alternate analog input function per the datasheet.