Insects can use their antennae to sense objects using both tactile and chemo receptors. Insects with long antennae such as a male long-horned beetle use antennae to search for females. Their long antennae give them a wider search area. Nocturnal insects such as katydids, move at night and can sense objects far in front providing early warning of a lurking predator.
Antennae can be directed to collect information in a 360 degree arc. This movement is aided by the attachment of the antenna to the head. The head capsule forms sclerotized sockets for antennae. The proximal segment of the antennae, the scape, fits and the socket and is connected to socket by flexible resilin containing cuticle. Muscles inside the head rotate the scape in its socket.
The articulation of an insect antenna with its head is similar to the articulation of the leg with the thorax. (Legs and antennae are homologous in many ways). The proximal segment of the legs, the coxa, fits into a socket in the thorax that also forms a ball and socket joint. The ball and socket articulation of both antennae and legs gives the appendages freedom of movement.