This project is a simple humidity-based controller for a 5V ultrasonic humidifier, using an Arduino Nano, DHT11 sensor, potentiometer, NPN transistor, and a TM1637 4-digit display.
When the humidity drops below a user-defined setpoint, the system automatically powers on the humidifier. The setpoint is adjusted via a potentiometer, and both the setpoint and current humidity are shown on the display.
- Arduino Nano (Rev3.0)
- DHT11 Humidity & Temperature Sensor
- 10kΞ© Potentiometer or Trimmer
- TM1637 4-digit 7-segment display
- NPN transistor (e.g. 2N2222 or S8050)
- 220Ξ© resistors (Γ2)
- 5V ultrasonic atomizer
- Breadboard & jumper wires
- Power source (USB or 5V supply)
- The DHT11 measures ambient humidity.
- The potentiometer sets the desired humidity setpoint (30%β70%).
- A TM1637 display shows:
- First two digits: setpoint (e.g.
45
) - Last two digits: current humidity (e.g.
38
)
- First two digits: setpoint (e.g.
- An NPN transistor switches on the LED and humidifier when humidity is below the setpoint.
- Everything is powered at 5V, and controlled by the Arduino Nano.
Install via the Arduino Library Manager:
Setpoint: 45% Humidity: 38% Display: 4538
When the humidity drops below the setpoint, the transistor activates, powering the LED and humidifier.
Note: instead of the led, a 5V ultrasonic atomizer must be used.