Well if it still reads the level it hasnt failed has it?
If the sensor stops working it should generate in implausuble signal fault code as the values it is reporting fall out of a specified range/there is no signal at all
This was exactly my point to address those who would have inevitably claimed you cannot rely on sensors to check your oil for you.