Kerekes Antal-Zoltan
Published

Smart monitoring systems of the ambiental parameters

BME280 atmospheric sensor connection diagram In this app.

BeginnerWork in progress55
Smart monitoring systems of the ambiental parameters

Things used in this project

Hardware components

1. BME280 —+ Arduino reads sensor values
×1
2. Arduino —+ Sends data via LoRa module
×1
3. RAK7268V2 —+ Forwards data to TTN or ChirpStack
×1
4. Backend Decodes and stores the data
×1

Hand tools and fabrication machines

LoRaWAN Data Transmission
Arduino IDE

Story

Read more

Custom parts and enclosures

Components

Schematics

Schematic

Code

Untitled file

Arduino
#include <Wire.h>
#include <Adafruit_Sensor.h> #include <Adafruit_BME280.h>

Adafruit BME280 bme;

void setup() { Serial.begin(9600); if(!bme.begin(0x76)) (
Seria1.print1n("Cou1d not find a valid BME280 sensor!"); while (1);



void loop() (
float temp = bme.readTemperature();
 
float hum = bme.readHumidity();
float pres = bme.readPressure() / 100.0F;

Serial.print("Temperature = "); Serial.print(temp); Serial.print1n(" °C");

Serial.print("Humidity = "); Serial.print(hum); Serial.print1n(" %");

Serial.print("Pressure = "); Serial.print(pres); Serial.print1n(" hPa");

delay(10000); // Every 10 seconds

Credits

Kerekes Antal-Zoltan
1 project • 0 followers

Comments