The oil level sensor is located inside the oil pan. Its primary job is to measure the amount of oil inside the pan prior to the engine being started. If the oil is low, it will trigger a warning light indicator on the dashboard, or will illuminate the check engine light.