Optical level switch uses the principle of total reflection in a prism. Reflection or penetration, is the basis of the…