help w/ detecting if fishing bobber is under specific y level

hello, i want to make it so that this specific item will only get fished up if the bobber is under a specific y level (lets say under y=40) how would I do that?
Continue to help post