Using one of the modules, suggested above, parallel with the switching device and one parallel with your load and ORing the outputs of the optocouplers (preferably open collector type) you can have all your parts inside your machine and the only connections to the monitoring device will be two isolated wires that will act as a “switch”. The only time the “switch” shows open will be when your heater is open.

Nick