I think this is similar to how standing desk presets / memory settings work.
Example Here
So maybe you could preconfigure some set_position’s similar to the above example if you integrate a position sensor into your cover?
Could be good to put a moving median filter (3 or 5?) on your adc it if it is noisey.