it is a bi metalic thermometer and it depends on emf
Bad themocouple. Have gas appliance repair check and replace it. They wear out.
They're in use nonstop. Anything mechanical is bound to go bad eventually. The metals inside the themocouple sensor lose their properties over time sending a wrong voltage signal.