Diodes date from about 1890-1900 although they're not the same as what is used today. The "sensor", aka thermistor, used in the low fuel circuit provides a direct electrical path when not immersed in a liquid thereby providing an electrical path to actuate the relay to provide voltage to the warning light. That means it shorts when there's no gas (or the other way around).
Jim