Go to file
Daniele Tricoli 0bc75e5cfb Increase collect data delay 2022-04-16 02:43:15 +02:00
.gitignore Initial import 2020-10-03 03:57:08 +02:00
LICENSE Initial import 2020-10-03 03:57:08 +02:00
README.md Move text before wiring diagram 2020-10-10 01:31:16 +02:00
thpa-sensor.ino Increase collect data delay 2022-04-16 02:43:15 +02:00
wiring.fzz Add wiring schematics 2020-10-04 00:32:29 +02:00
wiring.png Add wiring schematics 2020-10-04 00:32:29 +02:00

README.md

thpa-sensor

thpa-sensor is very simple temperature/humidity/pressure/altitude sensor code for arduino. It just pull data from a BME280 sensor and send it to a MQTT server.

Wiring

Connect the BME280 sensor using I2C, for example on a Wemos D1 mini:

Wiring diagram

Build

To build the project you have to provide a secrets.h header file with the following:

#define SECRET_WIFI_SSID ("your SSID")
#define SECRET_WIFI_PASSWORD ("the wifi password")
#define SECRET_MQTT_HOST ("MQTT host")
#define SECRET_MQTT_PORT (8883)
#define SECRET_MQTT_USER ("your mqtt user")
#define SECRET_MQTT_PASSWORD ("mqtt password")
#define SECRET_FINGERPRINT ("SHA1 fingerprint of the TLS certificate used")
#define SECRET_MQTT_TOPIC ("the/topic/where/to/send/data")
#define SECRET_MQTT_CLIENT_ID ("client id")