MAX31855 K-Type Temperature Sensor

Hi, I recently bought the Adafruit MAX31855 breakout board for Arduino.

I have only two questions, apart from the thermocouple.readCelsius() which works great , I need to know the digital value of the thermocouple (0-1024),

  • How can I retrieve this info from the sensor ?

  • How can I modify the library so I can use the digital value as I need it to use the board with a PID function.

For instance, double Adafruit_MAX31855::digitalValue(void) {} or some type of analog to digital conversion to transform 18.2C to 105 (0-1024 scale) for example.

I need to know the digital value of the thermocouple (0-1024),

A digital value is either 0 or 1, not 0-1024 (you probably mean 0-1023 anyway)

To transform one range of values, say 18-105 to another say 0-1023, look at the map() function.

But the 18-105 are in degrees Celsius, that is why I need the output as 0-1023 so then I can map it out or use it in a PID

The map() function will not care what the numbers represent it will just do the conversion between the ranges. The standard map() function only returns an integer, which may not give you enough precision. If so then search this forum and you will find other alternatives for floats. Alternatively multiply your floats by 10, do the map() and divide the result by 10.