What's the mileage?
This is the 3rd or 4th post on this subject in the last few weeks. Peugeots must be falling to bits. Most people/garages will replace the oil pressure sensor first. Then if that doesn't fix it, they will probably have a garage fit a new oil pump. When that doesn't fix it they ask on here!
If the warning light comes on once the engine is hot this usually means the crankshaft bearings are worn. An engine rebuild is the only cure for that.
Poor maintenance in the early years, not changing the oil within the time limits or using poor quality or the wrong quality oil, can cause this. The other favourite is where the driver gets in the car, puts his foot on the clutch, selects 1st gear, starts the engine and immediately drives off before the oil has had time to build up sufficient pressure to protect the bearings from load. And of course, Peugeot introduced service intervals of 2 years or up to 20,000 miles which does not help on a cheaply made engine.