I'm having an issue with configuring the BME280 sensor. It keeps giving me the following error: collect2: error: ld returned 1 exit status. I really don't know what's wrong with it.
esphome:
name: raspberry-pi-pico-w--2
friendly_name: Raspberry Pi Pico w - 2
rp2040:
board: rpipico
framework:
# Required until https://github.com/platformio/platform-raspberrypi/pull/36 is merged
platform_version: https://github.com/maxgerhardt/platform-raspberrypi.git
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "MlSWE56GvIvD5jLsGN9/GbyDcd4Xhga7sWVZCHko2+M="
ota:
password: "bfdfe6650c2121f904a56194af707ae4"
wifi:
ssid: Stoupik
password: password
i2c:
sda: 00
scl: 01
scan: true
id: bus_a
sensor:
- platform: bme280
address: 0x77
temperature:
name: "Teplota"
id: bme280_temperature
pressure:
name: "Tlak"
id: bme280_pressure
humidity:
name: "Vlhkost"
id: bme280_humidity
update_interval: 60s
I have tried to repeat it and make changes.