BTW, this is often totally undocumented (often blatantly on purpose) and you basically need to find a video review of the desk in question where you can see the desk move on its own or else it's not guaranteed it will do that & you will spend a ~minute every time you want to rise or lower the desk to the standing/sitting position.
Another thing I'd also look at, for a particular model, was how faithful the electrical/mechanical interfacing of the hack, and whether that had implications for system operation safety.
My thought was "Save yourself some time/effort and do what I do: set a timer to remind you to stand."
https://www.zenspacedesks.com.au/product/professional-series...
It would be hard to detect a problem going down since the leg could just lift off the ground.