A very smart alarm