I tried both ways that you presented and the second one was by far the best for my purpose.
I can’t even tell if its moving in the x axis, which is what I wanted, instead of having to use threshold detection to detect when the triangle started. Because I need to manipulate, align, and average the signals after that. If I have more questions I will make sure to ask.
Thank you and have a nice day.