Best way to detect PLC, sensor disconnection

If it is 4-20ma, You can alarm when it is below 4ma.

Thermocouples usually read max when disconnected, can alarm on that.

Depends!