Here we have created an alarm that rings after 10 seconds.