Light as a warning system