Creating nodes: how to execute code?

Could you please point me in the right direction. How does one create a simple timer? Initially a light is turned off by the press of a button, which initiates message. After 5 minutes has passed, how do you initiate a turn-off message?

Have a look at the trigger node, which can do that for you.