Idiot Oil Light

I'd replace the sensor the for the oil light and see if the problen goes away before I made a big deal out of it.They do go bad