Applications of control, warning, or safety devices in capping machinery