Need help with maxbotix sensor

Hi all,
I have a LV-MaxSonar-EZ4 that I have been trying to get working with a BAP and Bot Board 2. So far the only sample code I have found is for the Basic Atom or Basic Stamp. Does anyone have a working BAP code for the sensor with wiring details? I don’t really care if the serial, pulse, or analog input methods are used.