Combining Two Thermal Sensor D6T-8L-06 with multiplexer PCA 9545

Hi guys, I really need a help

I have thermal sensors d6t-8l-06 which output a 1x8 array of temperature data. Because of i will need two sensors, so I used 4 channel multiplexer PCA9545 to connect them together since they can only connected to arduino using I2c communication.

My problem is, how do I combined the two sensors data from 1x8 array each to become 1x16 array.

I have my codes here which I edited and refer to internet sources, please help me.

#include <Wire.h>
extern “C” {
#include “utility/twi.h”
}
#define PCAADDR 0x70
#define WAIT 250
#define LED 13
int rbuf [ 18 ];
int TDATA [ 8 ];
int T_PTAT;

void pcaselect(uint8_t i) {
if (i > 4) return;

Wire.beginTransmission(PCAADDR);
Wire.write(1 << i);
Wire.endTransmission();
}

// standard Arduino setup()
void setup()
{
while (!Serial);
delay(1000);
Wire.begin();

Serial.begin(9600);
Serial.println("\nPCAScanner ready!");

pinMode(LED, OUTPUT);
pinMode(16,OUTPUT); //pin D16=A2, for sensor0
digitalWrite(16,HIGH);
pinMode(17, OUTPUT); //pin D17=A3 , for sensor1
digitalWrite(17,HIGH);

}

void loop()
{
readAddress();

}
void readAddress(){
for (uint8_t t=0; t<4; t++) {
pcaselect(t);
Serial.print(“PCA Port #”); Serial.println(t);

for (uint8_t addr = 0; addr<=127; addr++) {
if (addr == PCAADDR) continue;

uint8_t data;
if (! twi_writeTo(addr, &data, 0, 1, 1)) {
Serial.print(“Found I2C 0x”); Serial.println(addr,HEX);
//reading data after found sensor
readTemperatures();
}
}
}
Serial.print("\ndone");

}
void readTemperatures(){
String buf = “”;
int i = 0 ;
Wire.beginTransmission(0x0A);
Wire.write(0x4C);

int writeStatus = Wire.endTransmission();
if(writeStatus != 0){
//Serial.println(“Writing failed”);
return;
}
delay(1);//DELAY 100
Wire.requestFrom(0x0A, 18);
for (i = 0 ; i < 18 ; i++) { //19 oct, value sebenar 19
rbuf * = Wire.read();*

  • }*
  • T_PTAT = (rbuf[0]+(rbuf[1] << 8));*
  • for (i = 0 ; i < 8 ; i++) {*
    TDATA = (rbuf [(i * 2 + 2)] + ( rbuf [(i * 2 + 3)] << 8 ));
    _ buf = buf + (TDATA*);
    buf = buf + (",");
    }
    Serial.println(buf);*_

* delay(WAIT);*
* digitalWrite(LED,LOW);*
* delay(WAIT);*
* digitalWrite(LED,HIGH);*
}

I tried to change the emoticon but cannot, its actually number 8.