You can find IoT related project here with the use of NodeMCU . Which will give the idea how to use Wi-Fi to connect device and sensors.