A method of determining, under the influence of a high frequency component of common mode noise, a representation of a fingerprint pattern of a finger using a fingerprint sensor (9; 19) comprising a plurality of sensing elements each comprising a sensing structure and a sensing element circuit connected to said sensing structure, said sensing element circuit having an output for providing a pixel signal (S pixel) indicative of the capacitive coupling between the sensing structure and the finger, wherein the method comprises the steps of: acquiring a reference signal (S ref) indicative of an electric coupling between a hand surface having friction ridges (30a-c) and a reference sensing structure (14; 25) configured in such a way that at least a portion of said reference sensing structure (14; 25) faces a plurality of said friction ridges (30a-c) when said finger is arranged on said fingerprint sensor (9; 19), the reference signal being an indicator of the level of interference caused by the common mode noise; acquiring pixel signals (S pixel,n) indicative of said capacitive coupling between said finger and said sensing structure comprised in each of said sensing elements using acquisition settings being dependent on said reference signal (S ref); and determining the representation of said fingerprint pattern based on said pixel signals (S pixel,n), wherein said step of acquiring said pixel signals comprises the steps of: sampling said reference signal (S ref) at a sampling time (t n), resulting in a reference signal value (S ref,n); sampling at least one pixel signal (S pixel) from at least one of said sensing elements at said sampling time (t n), resulting in at least one pixel signal value (S pixel,n); and resampling, if said reference signal value (S ref,n) is outside a reference signal value range, said reference signal (S ref) and said at least one pixel signal (S pixel) at at least one later sampling time (t n+1) until the reference signal value (S ref,n) is inside the reference signal value range. acquiring a reference signal (S ref) indicative of an electric coupling between a hand surface having friction ridges (30a-c) and a reference sensing structure (14; 25) configured in such a way that at least a portion of said reference sensing structure (14; 25) faces a plurality of said friction ridges (30a-c) when said finger is arranged on said fingerprint sensor (9; 19), the reference signal being an indicator of the level of interference caused by the common mode noise; acquiring pixel signals (S pixel,n) indicative of said capacitive coupling between said finger and said sensing structure comprised in each of said sensing elements using acquisition settings being dependent on said reference signal (S ref); and determining the representation of said fingerprint pattern based on said pixel signals (S pixel,n), wherein said step of acquiring said pixel signals comprises the steps of: sampling said reference signal (S ref) at a sampling time (t n), resulting in a reference signal value (S ref,n); sampling at least one pixel signal (S pixel) from at least one of said sensing elements at said sampling time (t n), resulting in at least one pixel signal value (S pixel,n); and resampling, if said reference signal value (S ref,n) is outside a reference signal value range, said reference signal (S ref) and said at least one pixel signal (S pixel) at at least one later sampling time (t n+1) until the reference signal value (S ref,n) is inside the reference signal value range. sampling said reference signal (S ref) at a sampling time (t n), resulting in a reference signal value (S ref,n); sampling at least one pixel signal (S pixel) from at least one of said sensing elements at said sampling time (t n), resulting in at least one pixel signal value (S pixel,n); and resampling, if said reference signal value (S ref,n) is outside a reference signal value range, said reference signal (S ref) and said at least one pixel signal (S pixel) at at least one later sampling time (t n+1) until the reference signal value (S ref,n) is inside the reference signal value range.