A sensor assembly is provided for measuring forces and/or torques which are transmitted by means of a rigid transmitter having a first part and a second part. The sensor assembly includes a first connection, a second connection, electromechanical sensor elements, a first flange, a second flange and a plurality of struts. The first and second connections are connectable to the first and second parts of the transmitter, respectively. The electromechanical sensor elements convert mechanical parameters into electrical parameters. The first flange surrounds the first connection and originates at the first connection. The second flange is aligned substantially parallel to the first flange. The second connection is arranged on the second flange and has a first surface and a second surface. The plurality of struts are substantially perpendicular to the first flange and connect the first flange to the second flange. A gap is formed between the first flange, the second flange and the struts, and is larger than a width of the struts. The electromechanical sensor elements are designed for determining strains or compressions and are arranged next to the plurality of struts on at least one of the first and second surfaces of the second flange.