Thread Pressure Sensor Can Measure Pipeline Pressure?

I'm going to thread pressure sensor for pipeline pressure measurement. But I have a friend who works in sensor factory, he advise, different pipe interfaces require different types of sensors. In my opinion, level transmitter can also measure pressure, how do you guys think?

Thanks for your help.