Sensor for a lift

Hi, my team is starting to experiment with sensors and I was wondering what sensors I would use for a lift balancing program? Would the old gyro work for this and how would I code such a thing?
Thx for the help
I apologize if this is like another post, if it is please link it

You probably want to use encoders or potentiometers, which both allow the tracking of an axles position. The V5 motors should have encoders built in so I would just use those.

Just to ask are you using Vex Coding Studio, if you are I highly recommend making a switch to either Pros, or Vexcode, it should be much easier to code, on those platforms, Vex coding studio is now considered Obsolete.