i have set up a ping sensor with my diecimila and am using this code from the site :
it seems to work ok and i can see good numbers reflecting distance in the serial monitor. i am trying to get these distance numbers into max msp using the serial object. i am using a print data object out of the serial objects left outlet but the numbers that are showing up in the max window are not the same distance numbers and are only two digits, though they do change when i move my hand in front of the sensor.
can anyone help me please and tell me what i am doing wrong (or what i dont understand) and give me an idea how i can get the distance numbers which are in the serial monitor to show up in max