Has any work been done on the engine recently?
What grade of oil are you using?
When was the oil changed last? Make of filter?
Is the oil at the correct level when cold?
Could be bodged by turning the revs up, could be a dodgy electrical connection on the pressure switch, could be the pressure switch, could be the oil pump or could be big engine rebuild time - I'd start with the pressure switch.