# Issue with gy-bmp280-3.3 sensor

**URL:** <https://community.particle.io/t/issue-with-gy-bmp280-3-3-sensor/28985>\
**Category:** Troubleshooting\
**Created:** [January 29, 2017, 8:59pm UTC](https://community.particle.io/t/issue-with-gy-bmp280-3-3-sensor/28985 "2017-01-29T20:59:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![r0b0tn1k](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/r0b0tn1k/32/11693_2.png) [@r0b0tn1k](https://community.particle.io/u/r0b0tn1k)\
**Post date:** [January 30, 2017, 9:10pm UTC](https://community.particle.io/t/issue-with-gy-bmp280-3-3-sensor/28985/4 "2017-01-30T21:10:05Z")

</div>

Ok got it finally!

Thing was to turn on SPI mode in the code, and rem out the I2C mode:

```
#define BMP_CS A2
#define BMP_SCK A3
#define BMP_MISO A4
#define BMP_MOSI A5 

//Adafruit_BMP280 bmp; // I2C
Adafruit_BMP280 bmp(BMP_CS); // hardware SPI
//Adafruit_BMP280 bmp(BMP_CS, BMP_MOSI, BMP_MISO, BMP_SCK);
```

---

_[View the full topic](https://community.particle.io/t/issue-with-gy-bmp280-3-3-sensor/28985)._
