To convert a normal fan into a smart fan that runs with Alexa or Google Assistant, find and connect it with a microcontroller assembly which has the required temperature and humidity sensors. However, if you don't need sophisticated fan controls, just purchase a smart Wi-Fi switch. It will at least turn on and off the fan device.