On a 20O6 Chevrolet Impala What is the purpose of the oil sensor?

There are two oil sensors on a 2006 Chevrolet Impala. One is to monitor oil pressure and the other is to let you know if the oil level is low.