Temperature, humidity and pressure measurement using Python on a Raspberry Pi Pico W with I2C on the Bosch BME280 and sending its data to an MQTT server.
- I2C0 SDA (pin 1) on
SDA - I2C0 SCL (pin 2) on
SCL - 3V3(OUT) (pin 36) on
VIN - GND (pin 38) on
GND
SSID- your WiFi network namePASSWD- your WiFi network password
MQTT_BROKER- MQTT broker ip-addressMQTT_USERNAME- MQTT usernameMQTT_PASSWORD- MQTT passwordMQTT_CLIENT_ID- MQTT client IDTOPIC_DIRECTORY- topic directory to publish to
time- time in seconds between updates
- copy both python files to the root folder of the Raspberry Pi Pico W
main.pybme280.py
- copy
config.jsonafter filling in required information
