Arduino Midi controller potentiometer set to CC(control change), NOT Intensity

Did you try the MIDI Controller library I recommended in a reply on your previous post on the topic? You need filtering and hysteresis on the Analog inputs for it to work correctly, the library takes care of all of this.

If you want to understand the MIDI protocol, read this: https://tttapa.github.io/Arduino/MIDI/Chap00-Arduino-MIDI.html

Pieter