how to call a procedure using an arduino uno

I have not had time to test much of this yet (due to miscommunication a few days ago, my partner has the hardware), so most of this was done in one sitting. I know there are probably still issues with it. I only have a small background in C++, and the commands that i remember from that language for functions dont seem to be recognized by the arduino. :~

SD_PIR_HBRIDGE2.ino (9.85 KB)