so i just have to use simple alarm rtc code, modify it using if else, include the mqtt connection and the publish code?