AUTOPILOT_ALTITUDE_LOCK_VAR incorrect altitude

I’m reading the AUTOPILOT_ALTITUDE_LOCK_VAR variable to project the set AP Altitude on a different screen. However, it is not reading the correct altitude. Any suggestions on how to correctly read the set AP altitude?

Thx!

Try reading Lock_Var:1