Sensors provided with means for identification