Gauge card for MQTT sensor which is not all the time online

Hello, i have gauge card for one temperature sensor, which is not all the time up. This sensor send the values true MQTT. How can i do this card to show that is “Not available” in case the sensor is off and show the values in case the sensor is on