warning device

noun

1.
a device that signals the occurrence of some undesirable event