Pressure switches for threaded connection