Enable ArduinoOTA
Add OTA support and upload over WiFi.
Meet ArduinoOTA
The simplest way to update over WiFi is the ArduinoOTA library. It makes your board appear as a network port inside the Arduino IDE.
Include the Library
OTA rides on WiFi, so you pull in both headers at the top of your sketch before anything else runs.
#include <WiFi.h>
#include <ArduinoOTA.h>