In accordance with the manufacturer's operation and maintenance manual.
__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
The float fastened to the inside of the transformer tank moves a magnet as the oil level changes. The movement of the magnet is sensed outside of the tank by the gauge (probably using another magnet). That way there is no need for a penetration of the tank wall to measure the oil level, reducing the number of locations where a leak could occur.
__________________
To get the right answers, first you need to ask the right questions.