An injection device for injecting medication to a patient, comprising a surface (5) having a through hole (3) for passage of a needle, is characterised by further comprising a capacitive proximity sensor (12, 13, 30) for detecting proximity or contact of human skin to/with said surface (5).