Accelerometer and NS Particles

Hello there !
I’m going to be real quick, for a school project I want to create a ribbon in niagra, and this ribbon must be emitted from an object following the movement of an accelerometer (in real time)
How can i do this ?
I thought of virtual prod to be able to visualise this accelerometer in a 3D space, but i m not sure if I’m going to the right direction
If someone has an idea, I’m really down for anything right now XD
Thanks yall