Yes thats right. I want to mix 2 examples of code in one script. Maybe that's not a good approach. All I want is the temperature in my seriel monitor send to domoticz. The code below is working for me. Next step is to send the value to IDX 4732 in domoticz instead of the seriel monitor but I don't know how to do this.

/***************************************************
This is a library for the Adafruit PT100/P1000 RTD Sensor w/MAX31865

This sensor uses SPI to communicate, 4 pins are required to
interface
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
****************************************************/

// The value of the Rref resistor. Use 430.0 for PT100 and 4300.0 for PT1000
#define RREF 430.0
// The 'nominal' 0-degrees-C resistance of the sensor
// 100.0 for PT100, 1000.0 for PT1000
#define RNOMINAL 100.0