Position sensor tolerates pressure environments