How to (if not)!

So if I understand
1 - cron causes a msg to be sent and turns on the LED
2 - you can press the button and turn off the LED
3 - after a set amount of time, if the button has not been pushed, send an email

Is that right?