Some level switches use a float to sense the level of a liquid surface, actuating an electrical switch by the…