Yes, if you want the fastest sampling,
in function void loop you can see the program that i was comment
void loop ()
{...
sensor.requestTemperatures();
suhu = sensor.getTempCByIndex(0) * 1.1; // Ambil hasil konversi
...
}
```emphasized text
do you understand what @lastchancename is discussing
trying calling sensor.requestTemperatures(); after sensor.getTempCByIndex(0)
you may want to call sensor.requestTemperatures(); in setup()
please think about this.
I think when I call sensor.requestTemperatures(); in the setup void it doesn't create a delay, but in the loop void it does.
not sure you understood what lastchancename described
sensor.requestTemperatures() shouldn't create a delay, it should just start a conversion and return immediately.
sensor.getTempCByIndex(0) may be delayed if the conversoin is not completed, but that delay may be shorter because of all the processing that was done between sampling.
there may be a function to determine if a conversion is complete before calling sensor.getTempCByIndex(0) if this delay is still too long