A tank device for a motor vehicle includes a tank container defined by a tank wall having at least one stop region, and at least one lever sensor arranged in the interior of the tank container. The at least one stop region is an end stop for the lever sensor to prevent adhesion of the lever sensor to the tank wall.