RTC Library for Code

Hey everyone I got this code and most of it’s libraries, but the DS1307 library is still an issue… the code I got is written in 2012 and none of the new RTC codes wants to work with this code. Please help a girl out…

Errors is as follows:
C:\Users\Zoey\Downloads\mrk2_green_house_box\mrk2_green_house_box.ino: In function ‘void setup()’:

mrk2_green_house_box:124: error: ‘RTC’ was not declared in this scope

RTC.stop();

^

mrk2_green_house_box:125: error: ‘DS1307_SEC’ was not declared in this scope

RTC.set(DS1307_SEC,45);

^

mrk2_green_house_box:126: error: ‘DS1307_MIN’ was not declared in this scope

RTC.set(DS1307_MIN,7);

^

mrk2_green_house_box:127: error: ‘DS1307_HR’ was not declared in this scope

RTC.set(DS1307_HR,3);

^

mrk2_green_house_box:128: error: ‘DS1307_DOW’ was not declared in this scope

RTC.set(DS1307_DOW,2);

^

mrk2_green_house_box:129: error: ‘DS1307_DATE’ was not declared in this scope

RTC.set(DS1307_DATE,18);

^

mrk2_green_house_box:130: error: ‘DS1307_MTH’ was not declared in this scope

RTC.set(DS1307_MTH,1);

^

mrk2_green_house_box:131: error: ‘DS1307_YR’ was not declared in this scope

RTC.set(DS1307_YR,10);

^

mrk2_green_house_box:150: error: ‘Serial2’ was not declared in this scope

Serial2.begin(9600);

^

C:\Users\Zoey\Downloads\mrk2_green_house_box\mrk2_green_house_box.ino: In function ‘void loop()’:

mrk2_green_house_box:167: error: request for member ‘get’ in ‘rtc’, which is of non-class type ‘int [7]’

rtc.get(rtc,true);

^

mrk2_green_house_box:445: error: ‘Serial2’ was not declared in this scope

Serial2.println("&&");

green_house_box.ino (13.2 KB)

It looks like the library is just not installed correctly.

@Zoey:

Please post your code. All of it.
Also, when you post your code, please remember to put it inside code tags. You get code tags by clicking on the </> symbol in the row of icons at the top of the message input box. (The </> symbol is first in the row.)

Zoey, a link to where the code came from might help, along with a mention of which board you're using.

This indicates that possibly you're compiling for an UNO (or similar) when the code was written for a Mega (or similar).:-

mrk2_green_house_box:150: error: 'Serial2' was not declared in this scope

   Serial2.begin(9600);