An electrical connector (100) includes an insulated housing (1), a number of terminals (2) received in the insulated housing (1) and a metal bar (3) received in the insulated housing (1). The insulated housing (1) defines a mating portion which has a bottom wall (11), an up wall (12) and a pair of side walls (13) interconnecting with the bottom and the up walls (11, 12) to form a receiving space. A majority of the terminals (2) are separated into two distinct groups (21, 22) and received in the bottom wall (11) of the insulated housing (1). While an additional pair of the terminals (23) is received in the up wall (12) of the insulated housing (1). And the metal bar (3) is inserted into the up wall (12) of the insulated housing (1) either. The pair of terminals (23) and the metal bar (3) consist a switch device, and when the electrical connector (100) mates with a complementary connector, the switch device is shut to give a detective signal.