Added oil pressure gauge no idiot light doesn’t work.

You may have overtightened the switch and damaged it. Easy to check....as above

With key in "run" and engine stopped, ground the wire, warning lamp should light. Check from the center button of switch to ground with continuity checker/ ohmeter, should be a dead short with engine stopped