Oil light on at idle when warm.

I had a loose connection on my sender it would flicker on & off. Replaced it with a gauge. No more troubles& i know i have good oil pressure