Sensor script as startup application

Good day,

Currently I am using a Jetson TX2 in order to read data from a Xsens sensor, which I afterwards send through a UDP connection over wi-fi in the same script. I would like to add this script as a start-up application such that whenever the TX2 starts, it automatically sends data, however, multiple solutions I have found online do not work at all (add to rc.local, update startup applications, etc.).

The script works very well, however I cannot say whether when running as a startup application affects resources it uses as I am new to embedded programming. Please let me know whether you would me to provide additional information on my part.

Thank you for your time and patience.

Kind regards,
Vlad Stefanovici