A sensor device (2) is disclosed. The sensor device (2) comprises a processor (14), a memory (24), an antenna (6), a power source or 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) is configured to encrypt the measurement data before the measurement data is transferred to the remote unit (28).