Device to detect if train driver is drowsy