How to check player height?

I want to find a way to check the height/y coordinate to run a function? Im in 1.21
Continue to help post