Ds18b20 sıcaklık sensörü

DS18B20 sıcaklık sensörünün Arduino Iot Cloud platformunda kullanmaya çalışıyorum.
Kullandığım kod aşağıdaki gibidir. Hiçbir şekilde sıcaklık verisini alamıyorum. Önceden bu kod ile alabiliyordum fakat şu an bir tepki yok. " /* " işaretlerini görmezden gelebilirsiniz. Ne yapmam gereklidir? Yardımlarınız için teşekkürler.

#include "thingProperties.h"
#include <OneWire.h>
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 4 //D2
const int PIN_nemSensoru = A0;
const int PIN_role = 2; //D4
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
  
  pinMode(PIN_role, OUTPUT);
  pinMode(PIN_nemSensoru, INPUT);
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
 /*float nem_sensoru_analog = analogRead(A0);
  toprak_nem_sensoru = 100.0 -(0.0977*nem_sensoru_analog);
  
  delay(1000);
  
  if(toprak_nem_sensoru < 50)
  {digitalWrite(PIN_role,LOW);}
  else
  {digitalWrite(PIN_role,HIGH);}
  
  delay(1000);
  */
  sensors.requestTemperatures();
  sicaklik_sensoru = (sensors.getTempCByIndex(0));
  delay(1000);
}
/*
  Since Role is READ_WRITE variable, onRoleChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onRoleChange()  {
  // Add your code here to act upon Role change
  if(role==1)
  {digitalWrite(PIN_role,LOW);}
  else
  {digitalWrite(PIN_role,HIGH);}
}