The drug delivery device comprising: a main body (802, 822, 852, 902, 956) having a distal end (808, 828, 910) and a proximal end (806, 826, 958), wherein the distal end (808, 828, 910) is configured to connect to a distribution interface; a detachable housing (804,824,854, 904, 962) configured to engage the main body (802, 822, 852, 902, 956) and decouple it; a conductive element (810, 830, 964) provided by the main body (802, 822, 852, 902, 956), wherein the device (800, 821, 850, 952) is configured to create an electrical connection between the element conductor (810, 830, 964) and an external electrical connector (849, 857, 862, 907, 968, 972); wherein the device (800, 821, 850, 952) is configured so that - when the detachable housing (804,824,854, 904, 962) is coupled to the main body (802, 822, 852, 902, 956) the administration of a drug by the drug delivery device (800, 821, 850, 952) is avoided by the detachable housing (804,824,854, 904, 962) that covers at least a part of the distal end (808, 828, 910) of the main body (802 , 822, 852, 902, 956), and - when the detachable housing (804,824,854, 904, 962) is decoupled from the main body (802, 822, 852, 902, 956) the administration of a drug by the device is allowed for drug administration (800, 821, 850, 952), characterized by the fact that - when the detachable housing (804,824,854, 904, 962) is coupled to the main body (802, 822, 852, 902, 956) the creation of the electrical connection between the conductive element (810, 830, 964) and an external electrical connector (849, 857, 862, 907, 968, 972 ) is allowed by the detachable housing (804,824,854, 904, 962) that interacts with the main body (802, 822, 852, 902, 956) and that allows access to an external electrical connector (849, 857, 862, 907, 968 , 972) to the device and - when the detachable housing (804,824,854, 904, 962) is decoupled from the main body (802, 822, 852, 902, 956) the creation of the electrical connection between the conductive element