Newbie needing some coding help!

HI All,

I recently got a Photon kit with the CE relay board and the temp and light sensor.
I been tinkering with it and its pretty cool, but I know nothing about coding. I been messing around with it and and getting somethings to work, this tutorial ( has been pretty cool but it doesn’t work with my HCPA model sensor.
I got one HCPA code from Github and I can get it to work but I dont know how to tie it to the library on that tutorial due to my lack of understanding of coding. Do you guys have a recommendation on coding lessons, be it a book or online, that could help me learn how to code? Seems like the stuff that I find is either very basic like the setup and startup or advanced that I have no idea what they are talking about.