help me with one question

One question about this code. I am using I2C to connect the two sensor and my teacher said i am didnt using and i didnt need to use the master and slave. why?? It is an one of thequestions on my final exams.. Pls help me

#include <LiquidCrystal.h> //pripojíme knižnicu pre LCD 16x2
#include <Wire.h> // pripojíme knižnicu pre prepojovacie káble
#include <Adafruit_Sensor.h> // pripojíme knižnicu pre senzory
#include <Adafruit_BMP085_U.h> // pripojíme knižnicu pre sensor BMP180( BMP085 )
#include <cactus_io_SHT31.h> // pripojíme knižnicu pre senzor SHT31
Adafruit_BMP085_Unified bmp = Adafruit_BMP085_Unified(10085);
cactus_io_SHT31 sht31;

///Prepojenie BMP180 a SHT31 k Arduinu UNO

//Pripojíme SCL na analógový vstup A5
//Pripojíme SDA na analógový vstup A4
//Pripojáme VDA na 3,3 Volta
//Pripojím GND na GND Arduino

const int backLight = 9;
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; // priradíme vývody

LiquidCrystal lcd(rs, en, d4, d5, d6, d7); // zadáme vývody na LCD monitore

void setup()
{
Serial.begin(9600); //Priradíme Serial Monitor
pinMode(backLight,HIGH);
digitalWrite(backLight,HIGH);
lcd.begin(16, 2); // Zapneme obrazovku
lcd.print(" METEOSTANICA ");// Vypíše nám Meteostanica Viktor
lcd.setCursor(0,1);
lcd.print(" Viktor Joba 4F ");
delay(1500); // oneskorenie v ms
lcd.clear(); // vyčistíme obrazovku

if(!bmp.begin())
{
// cyklus na ten prípad ak by bol nijaky problem so senzorom BMP180
lcd.print("NO BMP180 DETECTED!");
while(1);
}

// cyklus na ten prípad ak by bol nijaky problem so senzorom SHT31
if (!sht31.begin()) {
lcd.println("NO SHT31 DETECTED!"); //
while(1) ;
}
}

void loop(){
sensors_event_t event; // vytvoríme nove udalosti
bmp.getEvent(&event);
if (event.pressure) {
float temperature;
bmp.getTemperature(&temperature); // načítame hodnotu teploty zo senzora BMP180

lcd.setCursor(0,0); // nastvíme kurzor na začiatok prvého riadku
lcd.print("T:");
lcd.print(temperature); // vypíše nám teplotu s nepresnosťou +/- 2
lcd.print(char(178)); // znak
lcd.print("C");

lcd.print(" H:");
lcd.print(round(sht31.getHumidity())); // načíta hodnotu vlhkosti zo senzora SHT31 s nepresnostou +/- 2
lcd.print("%");

lcd.setCursor(0,1); // nastavíme kurzor na začiatok druhého riadku
lcd.print(" P:");
lcd.print(event.pressure); // načítame hodnotu tlaku zo senzora BMP180
lcd.print(" hPa ");
}
else
{
lcd.println("Sensor error"); // Ak nastane niaka chyba pri meraní tlaku vypíše nám na obrazovku CHYBA!
}
delay(250);
}

(deleted)

I am just asking for you help its hard to say it or what? i dont get it... everyone on this page is just writing the same to ask another person or do it for yourself.. but this page is for helping right? then pls help!

(deleted)

majrashi:
One question about this code. I am using I2C to connect the two sensor and my teacher said i am didnt using and i didnt need to use the master and slave. why??

I don't know.

Probably because I don't know what was/is in your teacher's mind.

...R

Do you listen during class?
Do you read the posts about how to post code?

Podívej se sem

{
// cyklus na ten prípad ak by bol nijaky problem so senzorom BMP180
lcd.print("NO BMP180 DETECTED!");
while(1); ??
}

// cyklus na ten prípad ak by bol nijaky problem so senzorom SHT31
if (!sht31.begin()) {
lcd.println("NO SHT31 DETECTED!"); //
while(1) ; ??
}

OR ---

{
    // cyklus na ten prípad ak by bol nijaky problem so senzorom BMP180
    lcd.print("NO BMP180 DETECTED!");
    while(1);   ?? 
}

// cyklus na ten prípad ak by bol nijaky problem so senzorom SHT31
if (!sht31.begin()) { 
    lcd.println("NO SHT31 DETECTED!"); //
    while(1) ;   ?? 
}

232:
Podívej se sem

{
// cyklus na ten prípad ak by bol nijaky problem so senzorom BMP180
lcd.print("NO BMP180 DETECTED!");
while(1); ??
}

// cyklus na ten prípad ak by bol nijaky problem so senzorom SHT31
if (!sht31.begin()) {
lcd.println("NO SHT31 DETECTED!"); //
while(1) ; ??
}

vedel by si mi to prosim ta lepsie vysvetlit? troska hlbsie prosim pekne

majrashi:
vedel by si mi to prosim ta lepsie vysvetlit? troska hlbsie prosim pekne

English language in this part of the Forum please.

...R

majrashi:
I am just asking for you help its hard to say it or what? i dont get it... everyone on this page is just writing the same to ask another person or do it for yourself.. but this page is for helping right? then pls help!

It is for helping but not helping you cheat on a school project.

You instructor's job is to explain it so that you understand it !

As someone else wrote about the OP --- a ginormous time sink ---
http://forum.arduino.cc/index.php?topic=531099.msg3620053#msg3620053

OP is someone who doesn't want to do work and expects others to do it for him.
Pathetic !

.