Gauges with electronic contact for PLC applications