Mainly working on a circuit that uses an RTC along with IR sensor (control for manual and automatic control of AC, in automatic the lights are controlled based on the sunrise and sunset times) yet the interrupt messes with the communication of the RTC and IR (pause in the system causes miscommunication). I'm not the best on C++ programming (electrical engineer, not a computer engineer). Hopefully I can get some feedback (atleast something that can lead me to the right direction). If you need the code posted, I can post later (not next to the code atm).