The fan controller described in this project can be used to activate a fan when the humidity is above a configurable threshold or when the light in the room is on for more that a predefined number of minutes. The device can be configured by toggling the light in the room a few times.
This project was designed to be placed inside a specific fan but is possible to use it with other kinds of fans.
The device uses the ATtiny13 microcontroller and two sensors. It uses the DHT11 to measure humidity and a LDR to detect the presence of light. The fan is controlled using a TRIAC.