Since you would typically be monitoring this with some sort of PLC, you might see this done at line voltage (120 VAC in the US) or more commonly now using dedicated DC devices operating at 24V. With all of the push to redundant safety devices, 24VDC is becoming the most common.
__________________
A great troubleshooting tip...."When you eliminate the impossible, whatever remains, however improbable, must be the truth." Sir Arthur Conan Doyle