I don't want the Arduino to send data wirelessly to a base station. Instrad I want to send the data to an online web server, hence I need WiFi for this.
The sensor reading and algorithms have been created. Now the thing remaining is connecting Arduino to WiFi and sending the data to the web server.