Probably more useful and practical than an oil level sensor is the solution some other types have, whereby the two pumps take their feed from different levels within the sump. When the higher one loses its supply it generates a caution and when the lower one loses it supply it generates a warning. This gives a sequence that points directly to oil loss.