oil light on/flickering!?

I had the same problem on a small block and the sender wire was off the spade terminal and bouncing off the block when running which made the light flicker