Widget value only shows when I refresh

I have six widgets on my display Three only display a value when I refresh and the values goes to zero after a short while. The other widgets are ok.
ny explanation and help will be appreciated

which device are you using?


can you share the code you are using.