What is the main function of the antenna in a communication system?

Explanation:

The antenna is responsible for transmitting and receiving electromagnetic waves, allowing communication systems to send and receive signals over distances.