Play sound based on the z value of physical door

To make the variable, right click here

image

and choose ‘promote to parameter’