Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›MS5803-01BA and MS5803-14BA Pressure Sensor Module

Component guide · Intermediate · 3 min read

MS5803-01BA and MS5803-14BA Pressure Sensor Module

I2C Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the MS5803 pressure sensor module isMS5803 pressure sensor module pinoutWiring the MS5803 pressure sensor moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The MS5803 is a high-resolution 24-bit absolute pressure and temperature sensor with a metal cap and gel protection. The 01BA version covers 10 to 1300 mbar for altimeters and weather, while the 14BA reads up to 14 bar, about 130 m of water, for depth loggers and ROVs. It speaks I2C at 3.3 V and stores factory calibration coefficients that your code applies.

Key specs at a glance

01BA range
10 to 1300 mbar, resolution about 0.012 mbar
14BA range
0 to 14 bar, resolution about 0.2 mbar
Temperature
-40 to +85 C, also measured
Interface
I2C (address 0x76 or 0x77) or SPI
Supply
1.8 to 3.6 V (3.3 V)
Package
Stainless cap with gel; water resistant on the sensing side

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1GY-MS5803-01BA High-Precision Pressure Sensor Module – 10-1300 mbar, I2C, 3V₹2,839
  • Option 2GY-MS5803-01BA Red Board Pressure Sensor Module – I2C Interface₹2,779
  • Option 3GY-MS5803-14BA Red Board Pressure Sensor Module – I2C Interface, 0-14 Bar₹2,909
01

What the MS5803 pressure sensor module is

After reset the code reads six calibration words from the sensor's PROM, starts a pressure conversion and a temperature conversion, and uses the datasheet formula to compute compensated pressure. The SparkFun MS5803 library does this.

For depth, depth in metres = (pressure - surface pressure) / (density x 9.81); fresh water is about 1 m per 98 mbar.

02

MS5803 pressure sensor module pinout

The pins on the MS5803 pressure sensor module and what each one does.

PinFunction
VCC3.3 V
GNDGround
SDA / SCLI2C
CSB / ADDAddress select (0x76 or 0x77)
PSProtocol select: high for I2C
PinFunction
VCC
3.3 V
GND
Ground
SDA / SCL
I2C
CSB / ADD
Address select (0x76 or 0x77)
PS
Protocol select: high for I2C
03

Wiring the MS5803 pressure sensor module

The red GY boards are 3.3 V only; use a level shifter with a 5 V Uno. For underwater use, pot the board and keep only the sensor cap exposed.

MS5803 pressure sensor module pinArduino UnoESP32
VCC / VIN3.3V (5V only if the board has a regulator)3V3
GNDGNDGND
SDAA4 (through a level shifter on bare 3.3 V boards)GPIO 21
SCLA5GPIO 22
VCC / VIN
Arduino Uno:
3.3V (5V only if the board has a regulator)
ESP32:
3V3
GND
Arduino Uno:
GND
ESP32:
GND
SDA
Arduino Uno:
A4 (through a level shifter on bare 3.3 V boards)
ESP32:
GPIO 21
SCL
Arduino Uno:
A5
ESP32:
GPIO 22
04

Example code

The SparkFun library targets the 14BA; for the 01BA use a library with the 01BA formula, as the second-order compensation constants differ.

Read pressure and temperature (SparkFun MS5803 library) · Arduino C++Verify & upload in Electrolark
#include <Wire.h>
#include <SparkFun_MS5803_I2C.h>

MS5803 sensor(ADDRESS_HIGH);    // 0x76; use ADDRESS_LOW for 0x77
double surface;

void setup() {
  Serial.begin(115200);
  Wire.begin();
  sensor.reset();
  sensor.begin();
  surface = sensor.getPressure(ADC_4096);   // mbar at start
}

void loop() {
  double p = sensor.getPressure(ADC_4096);
  double t = sensor.getTemperature(CELSIUS, ADC_512);
  double depth = (p - surface) / 98.1;      // metres of fresh water
  Serial.printf("%.2f mbar  %.2f C  %.2f m\n", p, t, depth);
  delay(1000);
}
05

Setup and tuning

Version

confirm 01BA or 14BA on the label; the formulas differ.

Address

CSB high gives 0x76, low gives 0x77 on most boards.

Oversampling

ADC_4096 gives the lowest noise but takes about 9 ms.

Waterproofing

never touch the gel; seal the rest of the board with epoxy or a 3D printed housing.

06

What you need

Shop this list7 of 8 found in our store · ₹9,120

  • Generic GY-MS5803-01BA High-Precision Pressure Sensor Module – 10-1300 mbar, I2C, 3V: the part this guide coversGY-MS5803-01BA High-Precision Pressure Sensor Module – 10-1300 mbar, I2C, 3V₹2,839
  • GY-MS5803-01BA Red Board Pressure Sensor Module – I2C Interface: another version this guide coversGY-MS5803-01BA Red Board Pressure Sensor Module – I2C Interface₹2,779
  • Generic GY-MS5803-14BA Red Board Pressure Sensor Module – I2C Interface, 0-14 Bar: another version this guide coversGY-MS5803-14BA Red Board Pressure Sensor Module – I2C Interface, 0-14 Bar₹2,909
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • 4-channel logic level converter (BSS138): to connect 5 V and 3.3 V signals safely4-Channel Logic Level Converter (BSS138)₹20
  • 0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
  • microSD card module: to log depth or altitudeMicroSD Card Module (SPI)₹45Closest match, check the specs
07

Alternatives and when to choose them

  • ✓BMP390 and BMP581: barometric sensors for altitude.
  • ✓LPS22 and LPS28: ST barometric and water-resistant sensors.
  • ✓Barometric pressure sensors: how to choose one.
08

Common mistakes to avoid

  • !5 V on a 3.3 V board.
  • !Using 14BA formulas on an 01BA.
  • !Touching or damaging the gel.
  • !Leaving the PCB exposed underwater.
09

Frequently asked questions

How deep can the 14BA go?

About 130 m of water at 14 bar absolute.

Can the 01BA measure altitude?

Yes, with about 10 cm resolution in still air.

Is the module waterproof?

Only the sensor cap; the board needs sealing.

I2C or SPI?

Both; most modules are wired for I2C.

Does it measure temperature?

Yes, for compensation and as a reading.

Parts for this guide

  • GY-MS5803-01BA High-Precision Pressure Sensor Module – 10-1300 mbar, I2C, 3V
    ₹2,839View
  • GY-MS5803-01BA Red Board Pressure Sensor Module – I2C Interface
    ₹2,779View
  • GY-MS5803-14BA Red Board Pressure Sensor Module – I2C Interface, 0-14 Bar
    ₹2,909View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 4-Channel Logic Level Converter (BSS138)
    ₹20View
  • 0.96" OLED Display 128x64
    ₹139View
  • MicroSD Card Module (SPI)
    ₹45View
Shop Pressure Transducers, Transmitters & Manometers

Keep learning

ComparisonBeginnerBarometric Pressure SensorsBarometric pressure sensors measure air pressure, from which you can calculate altitude or track weather.3 min read · SensorsComponent guideIntermediateBMP390 and BMP581 Pressure SensorsThe Bosch BMP390 and BMP581 are high-precision barometric pressure sensors that resolve altitude changes of about 10 to 25 cm, several times better than the BMP280.4 min read · SensorsComponent guideBeginnerST LPS22HB, LPS22HH, LPS28, LPS33HWST's LPS sensors are small MEMS barometers that report absolute air pressure and temperature over I2C or SPI.3 min read · SensorsConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics Fundamentals

Sources

  • TE Connectivity MS5803-01BA and MS5803-14BA datasheets
  • SparkFun MS5803-14BA library

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the MS5803 pressure sensor module isMS5803 pressure sensor module pinoutWiring the MS5803 pressure sensor moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)3 items · ₹3,063

GY-MS5803-01BA High-Precision Pressure Sensor Module – 10-1300 mbar, I2C, 3V · 4-Channel Logic Level Converter (BSS138) · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Depth from the pressure rise since power-up: about 98.1 mbar per metre of water.

Serial monitor115200 baud
1057.19 mbar  24.50 C  0.50 m

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question