First, I appreciate the answer to my question, and I apologize for not asking a complete question. Let's do it now.
Simulator: FSX
Aircraft: Airbus Aerosoft A320
Hardware Used for Integration: Arduino Mega 2560 + Potentiometer 10k
Communication Software: Mobiflight
In this configuration, I have no way to calibrate the spoiler directly in FSUIPC, because the Arduino is not recognized as a USB JOYSTICK. That's why I need to use MOBIFLIGHT.
My potentiometer returns the value 13 - 1023 which using @ it returns the value 0 - 16383 which is used in OFFSET to interact with FSX.
I have just sited an example that this same code works in another option, to reinforce that the Arduino + Potentiometer + Mobiflight + FSUIPC + FSX interaction are going well. In this case, the aforementioned formula took the value of the potentiometer and converted it to the range used in FSX, changing only the OFFSET to test with FLAP and everything went perfectly. Now when I return the offset to 0BD0 (SPOILER) I have no success. It appears that something is preventing it from extending and moving the spoiler lever. As I also said, this same code for the spoiler works on STANDARD FSX aircraft like Airbus and Boeing.
I believe it has something to do with this range from 4800 to 5619, and when the potentiometer value goes through it, it must be going into the range of spoiler armed function and thus blocks the operation of the spoiler lever.
Grateful for the attention.
Thiago Duarte