We introduce a smart antenna (SA) module to be used in OMNeT++ for wireless sensor networks (WSN). This module is a collection of tools in OMNeT++ for adding smart antenna capability to a central node in WSNs. It is based on sectoral sweeper (SS) scheme which was shown to provide efficient task management and easy localization scheme. The number of sensing nodes, energy consumption of nodes, and data traffic carried in the network are reduced with the SS. OMNeT++ is an open source object-oriented modular discrete event network simulator consisting of hierarchically nested modules. With the SA module, desired task region can be specified by a task beam with changing beam width and beam direction parameters in the OMNeT++ configuration file. In addition, each node in the network model that uses SA module has capability of Mobility framework which is intended to support wireless and mobile simulations within OMNeT++. The simulation results provide performance evaluation using the developed module in OMNeT++ for WSNs.