Question: how to connect bme280 to raspberry pi?
Answer: Connect the Raspberry Pi 3.3V power pin to Vin. Connect the Raspberry Pi GND pin to GND. Connect the Pi SDA pin to the BME280 SDI. Connect the Pi SCL pin to to the BME280 SCK.