Component guide · Beginner · 5 min read
0.5-4.5 V Stainless Steel Pressure Transducer (G1/4)

Wiring, Formula and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
These stainless steel transducers screw into a G1/4 port and turn water, air or oil pressure into a voltage: 0.5 V at zero pressure and 4.5 V at full scale. Power them from 5 V, read the signal on an analog pin, and convert with pressure = (V - 0.5) / 4 x full scale. Pick a range about 1.5 to 2 times your working pressure.
Key specs at a glance
- Ranges
- 0.2, 0.5, 0.8, 1, 1.2, 1.6, 3, 5 and 10 MPa (1 MPa = 10 bar)
- Output
- 0.5 to 4.5 V ratiometric
- Supply
- 5 V DC (some accept 5 to 12 V)
- Accuracy
- About 0.5 to 1 percent of full scale
- Thread
- G1/4 male on most; G1/2 adapter on DFRobot; M20 x 1.5 or G1/4 on Ascenta
- Connector
- Three-wire cable, Packard or Hirschmann plug
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 11MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output₹1,199
Option 20.2MPa Stainless Steel Pressure Transducer Sensor – G1/4″ Thread, 0.5-4.5V Output₹1,199
Option 30.5MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output₹1,199
Option 40.8MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output₹1,349
Option 51.2MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Analog Output₹1,129
Option 65MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output₹1,419
What the 0.5-4.5 V pressure transducer is
The 0.5 V offset lets you detect a broken wire: a reading near 0 V means a fault, not zero pressure. The output is ratiometric, so a supply that drifts from 5 V moves the reading with it; measuring the supply too, or using a stable 5 V, improves accuracy.
On a 3.3 V board such as an ESP32, divide the signal down (4.5 V must stay under 3.3 V) or use an ADS1115 ADC, which is also more accurate than the ESP32's own ADC.
0.5-4.5 V pressure transducer pinout
The pins on the 0.5-4.5 V pressure transducer and what each one does.
| Pin | Function |
|---|---|
| Red | +5 V supply |
| Black | Ground |
| Yellow, green or blue | Signal 0.5 to 4.5 V |
- Red
- +5 V supply
- Black
- Ground
- Yellow, green or blue
- Signal 0.5 to 4.5 V
Wiring the 0.5-4.5 V pressure transducer
Wire colours vary by maker; check the label or datasheet. Seal the thread with PTFE tape and never exceed the rated pressure, even briefly from water hammer.
| 0.5-4.5 V pressure transducer pin | Arduino Uno | ESP32 |
|---|---|---|
| Red (+5 V) | 5V | 5V (VIN) |
| Black (GND) | GND | GND |
| Signal | A0 | GPIO 34 via 10k/20k divider, or ADS1115 A0 |
- Red (+5 V)
- Arduino Uno:
- 5V
- ESP32:
- 5V (VIN)
- Black (GND)
- Arduino Uno:
- GND
- ESP32:
- GND
- Signal
- Arduino Uno:
- A0
- ESP32:
- GPIO 34 via 10k/20k divider, or ADS1115 A0
Example code
Change FULL_SCALE_BAR to your sensor's range (0.2 MPa = 2 bar, 5 MPa = 50 bar). On an ESP32 multiply by your divider ratio, or read in volts from an ADS1115.
const float FULL_SCALE_BAR = 10.0; // 1 MPa sensor = 10 bar
void setup() { Serial.begin(9600); }
void loop() {
float v = analogRead(A0) * 5.0 / 1023.0;
float bar = (v - 0.5) / 4.0 * FULL_SCALE_BAR;
if (v < 0.3) Serial.println("Sensor fault or wire broken");
else Serial.print("Pressure: "), Serial.print(bar, 2), Serial.println(" bar");
delay(500);
}Setup and tuning
with the port open to air the output should be close to 0.5 V; store that as your offset.
choose 1.5 to 2 times the working pressure to survive spikes.
use a G1/4 to 1/2 inch adapter for household pipes and a snubber for pulsing pumps.
average 10 to 20 readings for a stable display.
What you need
Shop this list19 of 20 found in our store · ₹20,387
Generic 1MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output: the part this guide covers1MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output₹1,199
Generic 0.2MPa Stainless Steel Pressure Transducer Sensor – G1/4″ Thread, 0.5-4.5V Output: another version this guide covers0.2MPa Stainless Steel Pressure Transducer Sensor – G1/4″ Thread, 0.5-4.5V Output₹1,199
Generic 0.5MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output: another version this guide covers0.5MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output₹1,199
Generic 0.8MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output: another version this guide covers0.8MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output₹1,349
Generic 1.2MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Analog Output: another version this guide covers1.2MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Analog Output₹1,129
Generic 5MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output: another version this guide covers5MPa Stainless Steel Pressure Transducer Sensor – G1/4 Thread, 0.5-4.5V Output₹1,419
Generic Pressure Sensor 0-10MPa Stainless Steel G1/4″ Thread – 0.5-4.5V Analog Output: another version this guide coversPressure Sensor 0-10MPa Stainless Steel G1/4″ Thread – 0.5-4.5V Analog Output₹1,469
Generic Pressure Sensor 0-3MPa Stainless Steel G1/4 Thread – 0.5-4.5V Output: another version this guide coversPressure Sensor 0-3MPa Stainless Steel G1/4 Thread – 0.5-4.5V Output₹2,309
DFRobot Gravity Analog Water Pressure Sensor – G1/2 to G1/4 Connector, 0-1.6 MPa, 0.5-4.5V Output: another version this guide coversDFRobot Gravity Analog Water Pressure Sensor – G1/2 to G1/4 Connector, 0-1.6 MPa, 0.5-4.5V Output₹1,969
Ascenta MM818 Pressure Sensor Module 0-10 bar Gauge – 5V Input, 0.5-4.5V Output: another version this guide coversAscenta MM818 Pressure Sensor Module 0-10 bar Gauge – 5V Input, 0.5-4.5V Output₹489
Ascenta PW618 Pressure Sensor with Hirschman Connector – 0-20 bar, 0.5-4.5V Output, M20x1.5 Port: another version this guide coversAscenta PW618 Pressure Sensor with Hirschman Connector – 0-20 bar, 0.5-4.5V Output, M20x1.5 Port₹1,249
Ascenta PW818 Pressure Sensor with Packard Connector | 0-20 bar | 0.5-4.5V Analog Output | G1/4 Port: another version this guide coversAscenta PW818 Pressure Sensor with Packard Connector | 0-20 bar | 0.5-4.5V Analog Output | G1/4 Port₹958
Ascenta PW818 Pressure Sensor with Parkard Connector – 0-10 bar, 0.5-4.5V Output, G1/4 Port: another version this guide coversAscenta PW818 Pressure Sensor with Parkard Connector – 0-10 bar, 0.5-4.5V Output, G1/4 Port₹1,095
FirstRate FST800-1500 Pressure Transmitter Sensor, 0-50 Bar, 0.5–4.5 VDC Output, G1/4 Thread: another version this guide coversFirstRate FST800-1500 Pressure Transmitter Sensor, 0-50 Bar, 0.5–4.5 VDC Output, G1/4 Thread₹2,231- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
ADS1115 16-bit 4-channel ADC module: for accurate readings on an ESP32 or 3.3 V boardADS1115 16-Bit 4-Channel ADC Module₹199
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
R385 diaphragm water pump 12V: a pump to control from the pressure readingR385 / R365 Diaphragm Water Pump 12V₹220Closest match, check the specs
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Alternatives and when to choose them
- 4-20 mA pressure transmitters: better for long cables and PLCs.
- Pressure transducers overview: types and how to choose.
- MPX pressure sensors: low-pressure and differential sensors for air.
Common mistakes to avoid
- Feeding the 4.5 V signal straight into an ESP32 pin.
- Choosing a range far above the working pressure, losing resolution.
- Forgetting the 0.5 V offset in the formula.
- Over-tightening into a plastic fitting.
Frequently asked questions
What range do I need for a home water line?
A 0.5 or 1 MPa (5 or 10 bar) sensor suits most domestic lines.
Can it measure air?
Yes, air, water and non-corrosive oils, within the range.
Can I use 3.3 V?
No; power it from 5 V and scale the signal for 3.3 V boards.
Is it gauge or absolute?
Gauge: it reads relative to the surrounding air.
How do I convert MPa to bar and psi?
1 MPa = 10 bar = 145 psi.
Parts for this guide
Keep learning
Sources
- Ratiometric pressure transducer datasheets (Ascenta, FirstRate)
- DFRobot Gravity analog water pressure sensor wiki
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

