void loop()
{
// Get data from first sensor hard I2C channel
float hum1 = (SHT2x.GetHumidity());
float temp1 = (SHT2x.GetTemperature());
Serial.println("temp1");
Serial.println(temp1);
// Get data from second sensor soft I2C
hsensor2.measure(SHT21::HUMI);
hsensor2.measure(SHT21::TEMP);
hsensor2.calculate(h, t);
float hum2 = (h);
float temp2 = (t);
Serial.println("temp2");
Serial.println(temp2);
// Get data from third sensor soft I2C
hsensor3.measure(SHT21::HUMI);
hsensor3.measure(SHT21::TEMP);
hsensor3.calculate(h, t);
float hum3 = (h);
float temp3 = (t);
Serial.println("temp3");
Serial.println(temp3);
// Get data from fourth sensor soft I2C
hsensor4.measure(SHT21::HUMI);
hsensor4.measure(SHT21::TEMP);
hsensor4.calculate(h, t);
float hum4 = (h);
float temp4 = (t);
Serial.println("temp4");
Serial.println(temp4);
Serial.println("");
Serial.println("");
delay(500);
}
Hi, do you remember what exactly you changed with changing 13 in 53? I would like to operate two SHT21 on Mega2560 but on completely different ports (which are not used for shields). How should we be able to determine any other ports then A0, D5…?