Stuck in traffic 340 got up to 220

The reason for the temp reading climbing while the engine is off is simply conductive heat in action, that coolant is not moving, the sending unit is essentially reading the temperature of the coolant at the intake manifold where it’s screwed into as well as the coolant at that spot as they absorb heat from other nearby areas that are hotter.