Professional Documents
Culture Documents
2
Student Name: Siya Sharma UID: 22BCS15362
Branch: CSE – General Section/Group: 207-D
Semester: II Date of Performance: 22/02 /23
Subject Name:Disruptive Technologies -2 Subject Code : 22ECH-103
1. Aim: Design a cloud based weather monitoring system using IoT platform and relevant
sensors.
2 .Objective:
4. CODE :-
#include <Adafruit_BMP280.h>
#include <UbidotsESPMQTT.h>
#define BMP_SDA 21
#define BMP_SCL 22
Ubidots client(TOKEN);
Serial.print(topic);
Serial.print("] ");
Serial.print((char)payload[i]);
Serial.println();
void setup() {
Serial.begin(9600);
Serial.println("Init... T2_Weather");
Serial.println("Initializing BMP280");
if (!status) {
Serial.println("Done");
Serial.print(WIFISSID);
Serial.print(", Password: ");
Serial.println(WIFIPASS);
client.wifiConnection(WIFISSID, WIFIPASS);
Serial.println("Done");
client.begin(callback);
Serial.println("Done");
Serial.println("DONE");
void loop() {
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
Serial.print("Pressure: ");
Serial.print(pressure);
Serial.println(" Pa");
// Establising connection with Ubidots
if (!client.connected()) {
client.reconnect();
client.add("pressure-data", pressure);
client.loop();
delay(5000);
5.OutPut:
5. Result/Output/Writing Summary :
In this a Cloud based weather monitoring system, we write the code
for the program called wm and is uploaded the same to the circuit using
Arduino ide. Simultaneously, we made a device on UBIDOTS to store our
data. As a result we see the weather conditions like temperature pressure
altitude and water boiling point And successfully completed the
experiment.
ii) Principal behind the cloud based weather monitoring Verify and upload code to circuit.
Evaluation Grid: