You can make your life a lot simpler by using one of the many DS1307 libraries to take the hard work out of reading/writing time. There are many versions and everyone has their favourite so I will suggest this
one as mine. Download, rename and install the library in the correct place and then load it's example to get an idea of how the library works.
const float baselineMoist = 20.0;
const float LightON = 12;
const float LightOFF= 22;
These don't need to be float values so would be better changed to 'int'
It makes your life (and others helping you) easier if you give the pins meaningful names. You have done this with A0 sensorPin.
You have 'void setup()' where you put initialization commands but you have no 'void loop()' in your code and this is the main core of your program (the bit you want to keep repeating).