A sensor for measuring biosignals, comprising at least one electrode, the electrode comprising a substrate (10) of flexible non-conductive material, a conductive layer (11) for transferring electrical signals, a gel layer (14) for transferring electrical signals and a barrier layer (12) for protecting the conductive layer (11) and transferring electrical signals. The barrier layer (12) is deposited on the substrate (10). The conductive layer (11) is deposited over the area of the barrier layer (12) which is outside of the area of the barrier layer contacting with the gel layer (14). The gel layer (14) is placed on the barrier layer (12) so that the gel layer covers only a part of the barrier layer (12).