air compresses, so the bag would be smaller when the pressure increases, but it could work.rovdude wrote:Maybe... just a thought right now, have the sensor in a bag of air. The air in the bag, I would assume, would have the same pressure as outside the bag. As long as the bag is not completely fillled with air, I think it would proportionally and directly react to pressure. Or put the sensor in a waterproof bag without excess air. Not sure, just spitting out ideas.
i would rather try the same with oil, oil does not compress, and is often dielectric, so it should not affect the exposed wires.
see the concept of "pressure compensation" here: viewtopic.php?p=4796#p4796