ESPBoards Learn – Early Access!

KY-052 Pressure and Temperature Sensor Module

KY-052 Pressure and Temperature Sensor Module image

View on Amazon

Overview

The KY-052 module features the BMP280 sensor, offering accurate measurements of barometric pressure and temperature. It utilizes the I2C interface for communication, making it ideal for environmental monitoring projects.

About KY-052 Pressure and Temperature Sensor Module

The KY-052 module integrates the BMP280 sensor, capable of measuring both barometric pressure and temperature. It communicates via the I2C bus, providing precise environmental data suitable for applications like weather stations, altimeters, and mobile devices.

Technical Specs

KY-052 Specifications

Complete technical specification details for KY-052 Pressure and Temperature Sensor Module

📊 Technical Parameters

Pressure Measuring Range 300 to 1100 hPa (equivalent to +9000 to -500 m above/below sea level)
Relative Accuracy ±0.12 hPa (±1 m) within 950 to 1050 hPa at 25°C
Absolute Accuracy ±1 hPa within 950 to 1050 hPa, 0 to +40°C
Temperature Coefficient Offset 1.5 Pa/K (12.6 cm/K) from 25 to 40°C at 900 hPa
Digital Interfaces I²C (up to 3.4 MHz), SPI (3- and 4-wire, up to 10 MHz)
Power Consumption 2.7 µA at 1 Hz sampling rate
Temperature Measuring Range -40 to +85°C
Dimensions 22 x 34 x 6 mm
Pin Configuration

KY-052 Pinout

The **KY-052** is a 6-pin barometric pressure and temperature sensor module:

Visual Pinout Diagram

Pinout Diagram Primary
KY-052 Pressure and Temperature Sensor Module pinout
6
Total Pins

Pin Types

Power
2
Communication
4

Quick Tips

🔌

**Interface**: I2C (default) or SPI,🌡️ **Sensor**: BMP280 barometric pressure and temperature sensor,📊 **I2C Address**: 0x76 (SDO to GND) or 0x77 (SDO to VCC)

**Power**: 3.3V or 5V operation (onboard voltage regulator),🌍 **Pressure Range**: 300-1100 hPa (±9000m to -500m altitude),🌡️ **Temperature Range**: -40°C to +85°C

📏

**Pressure Accuracy**: ±1 hPa (±8m altitude),🎯 **Applications**: Weather stations, altimeters, GPS enhancement, indoor navigation

Pin Descriptions

Pin NameTypeDescriptionNotes
1 GND
Power

Ground connection

2 VCC
Power

Power supply

3.3V or 5V

3 SDA
Communication

I2C data line

Bidirectional data

4 SCL
Communication

I2C clock line

Clock signal

5 CSB
Communication

Chip select for SPI

Connect to VCC for I2C mode

6 SDO
Communication

SPI data output

Not used in I2C mode

Connection Guide

Wiring KY-052 to ESP32

To interface the **KY-052** with an **ESP32** for pressure/temperature sensing (I2C mode):

Pin Connections

KY-052 PinConnectionESP32 PinDescription
1 GND Required
GND

Ground

2 VCC Required
3.3V or 5V

Power supply

3 SDA Required
GPIO21

I2C data (default ESP32 I2C SDA)

4 SCL Required
GPIO22

I2C clock (default ESP32 I2C SCL)

5 CSB Required
VCC

Connect to VCC for I2C mode

6 SDO Optional
NC or GND/VCC

Leave NC, or connect to GND (0x76) or VCC (0x77) for address

💡

**I2C Mode**: Connect CSB to VCC to enable I2C communication

📊

**I2C Address**: 0x76 (default) or 0x77 (connect SDO to VCC)

**Voltage**: 3.3V recommended for ESP32, but 5V compatible

🔌

**Pull-ups**: Internal I2C pull-ups on module (2.2kΩ typical)

📊

**Altitude**: Calculate altitude from pressure using barometric formula

🌡️

**Temperature**: Built-in temperature compensation for accurate pressure readings

⚠️

**SPI Mode**: If using SPI, connect CSB to GPIO (CS), SCL to SCK, SDA to MOSI, SDO to MISO

🔋

**Power**: ~2.7μA sleep, 720μA active (very low power)

Help & Support

KY-052 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

KY-052 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up KY-052

The ESP32 KY-052 Pressure and Temperature Sensor Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the KY-052 into your ESP32 project and bring your ideas to life!