Hello, I'm Having issues sending IR (Sharp 2Y0A21) data to Max MSP. i have scaled the data to cm in Arduino but I am unable to receive any data into Max. any help would be great.
void setup ()
void loop ()
x = analogRead(0);
dist = (pow((3027.4/x), 1.2134));
Max patch is using (see pic)