Getting readings from a sonar range finder

Hi @gtb104

The PW pin is the pulse output–I think you meant to use the AN pin which is the analog output.