car intermittently displays ---- on the dic for coolant temp on 2007 Chevrolet Cobalt

I'll get in the car in the morning and start it everything is normal then I drive about 5 miles the coolant temp disappears from the dic and displays a couple of dashes. Then when i get in to go home the display is okay.