A sensor device (2) is disclosed. The sensor device (2) comprises a processor (14), a memory (24), an antenna (6), a power source (e.g. a battery), one or more sensing elements (12) configured to provide measurement data and store the measurement data in the memory (24) and a communication unit (16) configured to transfer data from the one or more sensing elements (12) and data stored in the memory to a remote unit (28). The sensor device (2) comprises a contact detection unit configured to detect if the sensor device (2) is in contact with or in close proximity to the skin (80) of a user (32, 32’) if at least two of the at least three measurements made by different sensing elements (12) indicate that the sensor device (2) is in contact with or in close proximity to the skin (80) of a user (32, 32’).