Connect to DS18D20 sensor

Also this is a guide I followed to connect the sensor.
Is it relevant to the potato as well or is it enough to just properly connect the sensor?
Also I used the command sudo ldto enable w1-gpio from this guide and would like to know if it was relevant.

Thank you.