Overview
The SPA06-003 pressure sensor from Goertek is a good low-cost sensing solution for measuring barometric pressure. If you need excellent accuracy and repeatability for altitude calculations, you can't beat the Bosch BMP series - but if you are doing basic DIY sensing, this sensor fits the bill. We see it used a lot for DIY quadcopter builds and environmental sensing.
The SPA06-003 can measure from 300~1100hPa (approximately -500 to +9000m from sea level) with typical relative accuracy of ±3 Pa (equivalent to ±0.25 meter) and absolute accuracy of ±30 Pascals, or ±2.5meters. Temperature measurement accuracy is ±1°C. As we mentioned, its not going to be as accurate or precise as the latest BMP series, but the price can't be beat!
Nice sensor right? So we made it easy for you to get it right into your next project. The surface-mount sensor is soldered onto a PCB and comes with a 3.3V regulator and level shifting so you can use it with a 3V or 5V logic microcontroller or single board computer without worry.
The custom made PCB is in the STEMMA QT form factor, making them easy to interface with. The STEMMA QT connectors on either side are compatible with the SparkFun Qwiic I2C connectors. This allows you to make solderless connections between your development board and the SPA06 or to chain it with a wide range of other sensors and accessories using a compatible cable. QT Cable is not included, but we have a variety in the shop
Page last edited September 25, 2025
Text editor powered by tinymce.
Pinouts
The default I2C address is 0x77.
- Vin - this is the power pin. Since the sensor chip uses 3VDC, we have included a voltage regulator on board that will take 3-5VDC and safely convert it to 3VDC. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use 5V.
- 3Vo - this is the 3.3V output from the voltage regulator, you can grab up to 100mA from this if you like
- GND - common ground for power and logic
- SCK/SCL - the I2C clock pin, connect to your microcontroller's I2C clock line.
- SDI/SDA - the I2C data pin, connect to your microcontroller's I2C data line.
- STEMMA QT - These connectors allow you to connectors to dev boards with STEMMA QT connectors or to other things with various associated accessories
Leave the CS pin disconnected for I2C use.
The SDO pin is also the I2C address select pin. Connecting this pin to GND will make the I2C address 0x76 instead of the default 0x77.
On the back of the SPA06-003 breakout there is an addr jumper for the SDO pin that can be soldered closed to change the I2C address to 0x76 more permanently.
If this jumper is not soldered closed then the I2C address will be 0x77.
All pins going into the breakout have level shifting circuitry to make them 3-5V logic level safe. Use whatever logic level is on Vin!
- SCK - This is the SPI Clock or SCK pin, its an input to the chip and can use 3 - 5V logic.
- SDO - this is the Serial Data Out / Microcontroller In Sensor Out pin, for data sent from the SPA06-003 to your processor.
- SDI - this is the Serial Data In / Microcontroller Out Sensor In pin, for data sent from your processor to the SPA06-003. Its an input to the chip and can use 3 - 5V logic.
- CS - this is the Chip Select pin, drop it low to start an SPI transaction. It's an input to the chip and can use 3 - 5V logic.
If you want to connect multiple SPA06-003 sensors to one microcontroller, have them share the SCK, SDO and SDI pins. Then assign each one a unique CS pin.
Page last edited September 25, 2025
Text editor powered by tinymce.
CircuitPython & Python
It's easy to use the SPA06-003 breakouts with Python or CircuitPython, and the Adafruit_CircuitPython_SPA06_003 module. This module allows you to easily write Python code to read pressure and temperature data from the sensor.
You can use this driver with any CircuitPython microcontroller board or with a computer that has GPIO and Python thanks to Adafruit_Blinka, our CircuitPython-for-Python compatibility library.
CircuitPython Microcontroller Wiring
First, wire up the breakout to your board exactly as follows. The following is the breakout wired to a Feather RP2040 using the STEMMA connector:
-
Board STEMMA 3V to breakout STEMMA VIN (red wire)
-
Board STEMMA GND to breakout STEMMA GND (black wire)
-
Board STEMMA SCL to breakout STEMMA SCL (yellow wire)
- Board STEMMA SDA to breakout STEMMA SDA (blue wire)
The following is the breakout wired to a Feather RP2040 using a solderless breadboard:
-
Board 3V to breakout VIN (red wire)
-
Board GND to breakout GND (black wire)
-
Board SCL to breakout SCK/SCL (yellow wire)
- Board SDA to breakout SDI/SDA (blue wire)
Python Computer Wiring
Since there are dozens of Linux computers/boards you can use, we will show wiring for Raspberry Pi. For other platforms, please visit the guide for CircuitPython on Linux to see whether your platform is supported.
Here's the Raspberry Pi wired with I2C using the STEMMA connector:
-
Pi 3V to breakout STEMMA VIN (red wire)
-
Pi GND to breakout STEMMA GND (black wire)
-
Pi SCL to breakout STEMMA SCL (yellow wire)
- Pi SDA to breakout STEMMA SDA (blue wire)
Here's the Raspberry Pi wired with I2C using a solderless breadboard:
Python Installation of SPA06-003 Library
You'll need to install the Adafruit_Blinka library that provides the CircuitPython support in Python. This may also require enabling I2C on your platform and verifying you are running Python 3. Since each platform is a little different, and Linux changes often, please visit the CircuitPython on Linux guide to get your computer ready!
Once that's done, from your command line run the following command:
pip3 install adafruit-circuitpython-spa06-003
If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use CircuitPython on Python 2.x, it isn't supported!
CircuitPython Usage
To use with CircuitPython, you need to first install the Adafruit_CircuitPython_SPA06_003 library, and its dependencies, into the lib folder on your CIRCUITPY drive. Then you need to update code.py with the example script.
Thankfully, we can do this in one go. In the example below, click the Download Project Bundle button below to download the necessary libraries and the code.py file in a zip file. Extract the contents of the zip file, and copy the entire lib folder and the code.py file to your CIRCUITPY drive.
Your CIRCUITPY/lib folder should contain the following folders and file:
- adafruit_bus_device/
- adafruit_register/
- adafruit_spa06_003.mpy
Python Usage
Once you have the library pip3 installed on your computer, copy or download the following example to your computer, and run the following, replacing code.py with whatever you named the file:
python3 code.py
Example Code
If running CircuitPython: Once everything is saved to the CIRCUITPY drive, connect to the serial console to see the data printed out!
If running Python: The console output will appear wherever you are running Python.
# SPDX-FileCopyrightText: Copyright (c) 2025 Tim Cocks for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import time
import board
from adafruit_spa06_003 import SPA06_003
i2c = board.I2C()
# i2c = board.STEMMA_I2C()
# Initialize with default I2C Address
spa = SPA06_003.over_i2c(i2c)
# Initialize with alternate I2C Address
# from adafruit_spa06_003 import SPA06_003_ALTERNATE_ADDR
# spa = SPA06_003.over_i2c(i2c, address=SPA06_003_ALTERNATE_ADDR)
while True:
if spa.temperature_data_ready and spa.pressure_data_ready:
print(f"Temperature: {spa.temperature} °C", end=" ")
print(f"Pressure: {spa.pressure} hPa")
time.sleep(1.0)
Page last edited September 25, 2025
Text editor powered by tinymce.
Arduino
Using the SPA06-003 breakout with Arduino involves wiring up the breakout to your Arduino-compatible microcontroller, installing the Adafruit_SPA06_003 library, and running the provided example code.
Wiring
Wire as shown for a 5V board like an Uno. If you are using a 3V board, like an Adafruit Feather, wire the board's 3V pin to the sensor VIN.
Here is an Adafruit Metro wired up to the sensor using the STEMMA QT connector:
-
Board 5V to breakout VIN (red wire)
-
Board GND to breakout GND (black wire)
-
Board SCL to breakout SCL (yellow wire)
- Board SDA to breakout SDA (blue wire)
Here is an Adafruit Metro wired up using a solderless breadboard:
-
Board 5V to breakout VIN (red wire)
-
Board GND to breakout GND (black wire)
-
Board SCL to breakout SCK/SCL (yellow wire)
- Board SDA to breakout SDI/SDA (blue wire)
Library Installation
You can install the Adafruit_SPA06_003 library for Arduino using the Library Manager in the Arduino IDE.
Click the Manage Libraries ... menu item, search for Adafruit_SPA06_003, and select the Adafruit_SPA06_003 library:
If asked about dependencies, click "Install all".
If the "Dependencies" window does not come up, then you already have the dependencies installed.
/*!
* @file simpletest.ino
*
* A simple test for the SPA06_003 pressure and temperature sensor.
* This example shows basic pressure and temperature readings using the sensor.
*
* The begin() function automatically configures the sensor for:
* - Highest precision (128x oversampling)
* - Highest sample rate (200 Hz)
* - Continuous measurement mode
*
* Designed specifically to work with the Adafruit SPA06_003 Breakout
* ----> https://www.adafruit.com/products/xxxx
*
* These sensors use I2C to communicate, 2 pins are required to interface.
*
* Written by Limor 'ladyada' Fried with assistance from Claude Code
* for Adafruit Industries.
* MIT license, check license.txt for more information
* All text above must be included in any redistribution
*/
#include <Adafruit_SPA06_003.h>
Adafruit_SPA06_003 spa;
void setup() {
Serial.begin(115200);
while (!Serial)
delay(10); // will pause Zero, Leonardo, etc until serial console opens
Serial.println("Adafruit SPA06_003 Simple Test");
// Try to initialize!
if (!spa.begin()) {
Serial.println("Failed to find SPA06_003 chip");
while (1) {
delay(10);
}
}
Serial.println("SPA06_003 Found!");
}
void loop() {
// Only read and print when new data is available
if (spa.isTempDataReady() || spa.isPresDataReady()) {
float temperature = spa.readTemperature();
float pressure = spa.readPressure();
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.print(" °C");
Serial.print("\tPressure: ");
Serial.print(pressure);
Serial.println(" hPa");
}
delay(10); // Short delay to avoid overwhelming the sensor
}
Upload the sketch to your board and open up the Serial Monitor (Tools -> Serial Monitor) at 115200 baud. You'll see the SPA06-003 recognized over I2C. Then, the temperature, and pressure will be printed out to the Serial Monitor.
Page last edited September 25, 2025
Text editor powered by tinymce.
WipperSnapper
What is WipperSnapper
WipperSnapper is a firmware designed to turn any WiFi-capable board into an Internet-of-Things device without programming a single line of code. WipperSnapper connects to Adafruit IO, a web platform designed (by Adafruit!) to display, respond, and interact with your project's data.
Simply load the WipperSnapper firmware onto your board, add credentials, and plug it into power. Your board will automatically register itself with your Adafruit IO account.
From there, you can add components to your board such as buttons, switches, potentiometers, sensors, and more! Components are dynamically added to hardware, so you can immediately start interacting, logging, and streaming the data your projects produce without writing code.
If you've never used WipperSnapper, click below to read through the quick start guide before continuing.
First, wire up a SPA06-003 to your board exactly as follows. Here is an example of the SPA06-003 wired to an Adafruit ESP32 Feather V2 using I2C with a STEMMA QT cable (no soldering required). Alternatively follow the wiring description and the breadboard image to manually wire up your sensor.
-
Board 3V to breakout VIN (red wire)
-
Board GND to breakout GND (black wire)
-
Board SCL to breakout SCK/SCL (yellow wire)
- Board SDA to breakout SDI/SDA (blue wire)
Usage
Connect your board to Adafruit IO Wippersnapper and navigate to the WipperSnapper board list.
On this page, select the WipperSnapper board you're using to be brought to the board's interface page.
If you do not see your board listed here - you need to connect your board to Adafruit IO first.
On the device page, quickly check that you're running the latest version of the WipperSnapper firmware.
The device tile on the left indicates the version number of the firmware running on the connected board.
- If the firmware version is green with a checkmark - continue with this guide.
- If the firmware version is red with an exclamation mark "!" - update to the latest WipperSnapper firmware on your board before continuing.
Next, make sure the sensor is plugged into your board and click the I2C Scan button.
You should see the SPA06-003's default I2C address of 0x77 pop-up in the I2C scan list.
First, double-check the connection and/or wiring between the sensor and the board.
Then, reset the board and let it re-connect to Adafruit IO WipperSnapper.
With the sensor detected in an I2C scan, you're ready to add the sensor to your board.
Click the New Component button or the + button to bring up the component picker.
Adafruit IO supports a large amount of components. To quickly find your sensor, type SPA06 into the search bar, then select the SPA06-003 component.
On the component configuration page, the SPA06-003's sensor address should be listed along with the sensor's settings.
The Send Every option is specific to each sensor's measurements. This option will tell the Feather how often it should read from the SPA06-003 sensor and send the data to Adafruit IO. Measurements can range from every second to every 24 hours.
For this example, set the Send Every interval to every 30 seconds.
Your device interface should now show the sensor components you created. After the interval you configured elapses, WipperSnapper will automatically read values from the sensor(s) and send them to Adafruit IO.
To view the data that has been logged from the sensor, click on the graph next to the sensor name.
Here you can see the feed history and edit things about the feed such as the name, privacy, webhooks associated with the feed and more. If you want to learn more about how feeds work, check out this page.
Page last edited September 25, 2025
Text editor powered by tinymce.
Downloads
Page last edited September 25, 2025
Text editor powered by tinymce.