Maybe on higher end or newer vehicles sure, but for your standard economy vehicle made in the last 2 decades its commonly just visually reading (as in a human just looking with their eyeballs) the fluid level on the reservoir. No sensors or switches involved.
(Obviously not relevant to ferrari)