Well, yes… you need to add the libs on top of your sketch. A little below that you add the ssid, pass, auth,… than you need to setup the timer (in the setup func) that calls your myFunc function.
Check THIS post from @Gunner and try to implement it in your code. Check the void loop()… you’ll notice that there are only 3 lines (you don’t need OTA to start with coding) and put all the code regarding your RTD in myFunc.
Read a little through the docs, try with writing some code, upload to esp and if it doesn’t work, post your code here and ask for hints to make it work