I’m using this (link follows) temperature module to get temps using the Wire library. The datasheet says to use address 0x78 and read 4 bytes at a time. I do this using the following code:
Wire.requestFrom(0x78, 4); unsigned int thermalVoltage = (Wire.receive() << 8) + Wire.receive(); unsigned int thermalEquilibrium = (Wire.receive() << 8) + Wire.receive();
The termalVoltage is ok, however the 3rd and 4th byte are the same as the 1st and 2nd respectively. Somehow it seems to read 2 bytes instead of 4 and repeat the first two bytes while getting them. So thermalVoltage and thermalEquilibrium are the same. What do I do wrong?