The filling quantity in the fermenter of a biogas plant can be determined using the expansion of the gas tank. This is important in order to assure a constant gas flow to the combustion engine. Draw-wire sensors which are clamped above the film are used for this. The sensor itself is located in the generator building. If the film rises, a displacement change of the sensor is registered.