Hi, I am trying to read temperature values from a D6T-44L Thermal IR sensor, but the Wire.read() data returns a constant 255 value. I am powering the sensor through the VIN pin (5V) and have 10k ohm pull up resistors going to the SDA and SCL pins. The Code snippet below shows how I setup getting the data from the senor:
//Wire address 10
Wire.beginTransmission(10);
//ask sensor to begin sensing 0x4C
Wire.write(76);
Wire.endTransmission(true);
//request Data from address 10, 35 bytes long
Wire.requestFrom(10,35);
I have another question pertaining to this if you don’t mind. I finally got values and everything, but the last 3 bytes of the message are still reading 255. Am I cutting off the bus too early? The sensor should be sending 35 bytes of information, but when I check Wire.available() I only get 32.