Humidity control is important for industrial and residential applications. A Raspberry Pi controller in Python senses the current relative humidity and adjusts a fan that is pulse width modulated to maintain a desired humidity level. Future Internet of Things (IoT) devices may be smart bathroom fans or many other applications where humidity regulation is desired.