Timer to turn a switch off

You may also wish to consider the Switch Timer with reset driver. This will setup a virtual switch which lasts a certain length of time. Check the status of this switch when you want an action to occur.