You raised a good point Tom, as I had not checked the voltage on these pins.
The supply is one of these Chinese mains buck converters.
The Uno is running a 2.4 inch touch screen , a DH22, an LED, and a 5V relay which makes it very awkward to measure across any pins, so I connect the buck converter to an LED to give it a load and used a digital meter across the LED. It read 5.05V.
I then used a spare uno just running blink on which I could read the voltage.
It read 4V on the 5V pin, so I'll assume the same is true on my project however the project is running so I must be just lucky.
There is another reason that I connected the supply to the VIN, which I originally forgot to say . This is because I do not know how good these buck converters are at keeping a steady voltage supply and did not want to connect it to a 5V pin and damage the Uno.
I'd had the impression that going via VIN with 5V the uno would not even fire-up let alone run my project.
So your post has been useful in helping me understand what is going on.
You may want to power the relay coil directly from the buck converter 5V output. This could improve the overall reliability by helping prevent the regulator on the Arduino board to drop below your 4V.
Still not my preference, but you are the lucky one...
I've started with Arduinos only a short time ago and have lots to learn.
The project I've made is a temperature controller to turn on and off my oil filled radiator in an unheated room. I've used DHT22 to detect the temperature. The temperature is set via my touch screen device.
I realise now that my original question was wrong.
I have a 5v buck converter. An SM-PLGO6A, which I know should go to the 5V pin. However these products are so cheap that I wondered how stable they are.
So I think I should have asked if anyone knows the stability of them as I was concerned at blowing up the uno if the SM-PLGO6A is not all that stable.