yellow oil light when engine is off?

my oil light (yellow) has been coming on randomly after the car is switched off. i have had it in for that before, but this is the second time it has come on. it comes on randomly. could it be a bad sensor or something else of that nature? it is a 2006 330CI & still under warranty so if something goes wrong, all the blame is on bmw! [headbang]