I used Arduino SPI library from:
and had a look at the datasheet to see how to reset the TSYS01, start conversion and then read the results. This is what I am attempting to do with my code.
SPI.transfer(0x1E); // reset the chip
delay (100);
SPI.transfer(0x48); // start temp conversion
delay(100);
data = SPI.transfer(0x00);// read the conversion results
then I print the value of data on tera term
Serial.print("I received: ");
Serial.println(data, HEX);
Can you please help in correcting the code if there are any issues? Any help will be great. Thanks