Example code for how to use the watchdog timer