parallax ping

The examples i have found work fine such as:


Basically the signal that comes out of the ping sensor is used as both input and output and is plugged into digital pin 7, my question is how do i out put the data from the digital pin to max/msp, or can i plug the ping into one of the analog pins?

I am using max/msp and want to read the data from the digital

*sorry ignore the last line