air pressure sensor

Carl47 - can this device placed in a sealed vertical air tube be used to sense the level of a petrol tank? If you think not ,do you know a device that would work inside a sealed tube mostly filled with air?