Thanks to the mercury inside, the sensor switches its contacts to conductive state depending on its position.
It can be used in self-balancing robots, stair-climbing robots, and similar projects.
It is also used in line-following robots for bridge crossing applications.