Level switch with hermetically sealed contacts