Question involving oil pan sensor

The sensor is just for the low oil light on the dash & doesn't connect to the computer. It should be resistant to almost any solvent but MEK or Acetone.