URGENT Arduino to Pd, Multiple Sensors

Hello Everyone,

As many people here asking this type of question, I'm a newbie with everything envolving Arduino and Pure Data, so first off I want to apologize if this is a very stupid question to ask.

So I'm trying to gather information with 3 sensors (Photoresistor, Rotary Encoder and a Tap Module), with Arduino. I then want to send that information into Pure Data in order to separate the three individual data and, using MIDI, connecting this data to different parameters in Ableton in order to control the sound with these sensors.

I think that the code part is ok (I left it here as an attachment).

However, when it comes to Pd, the pain starts...

So I'm going:

|devices| |open 3| |close|
\ | /
|comport 3 9600|
|
|unpack f f f f f f f f ...|
|
|nr. object|

I guess these number objects after the unpack should be giving me the values sent by the sensors.. right ? and I would then send them to ableton through ctlout with loopmidi.

But the problem is that nothing is happening in the nr objects, except for the first box who is giving me a fix value of 10...

I have no clue how to fix this and its for a degree module, if someone could help me I'd be much appreciated.

ALL-IN-ONE.ino (4.64 KB)

You address many specific items in your post. Not everybody is familiar with MIDI, Pd, Ableton etc. together.

You may get more answers if you break down your project into task, e.g. one task for every used library. Then the users of such a library can contribute answers to that part of your project

Also show your code, enclosed in code tags </>, because not everybody will download attached files.

For really urgent projects you can ask for solutions in Gigs and Collaboration.