Community project

Rust Risk Email Alert

Photo of Rust Risk Email Alert
Generated with AI

Kabi The MOR

Published November 17, 2026

This project monitors humidity levels and triggers active cooling when conditions indicate rust risk, sending alerts via Bluetooth to a connected device. The system uses a DHT11 sensor to continuously measure ambient humidity and temperature, then activates a Peltier cooling module through a logic-level MOSFET when humidity climbs into the danger zone. The guide includes a complete wiring diagram showing how to safely integrate the high-current Peltier module with proper fusing and voltage protection for the Bluetooth module, plus the Arduino firmware that handles DHT11 sensor communication and sends real-time data over Bluetooth.

Builders will receive step-by-step assembly instructions for constructing the cold plate and condensation drain, wiring the humidity sensor to the Arduino, protecting the HC-05 Bluetooth module with a voltage divider, and building the high-current switch circuit. A separate 12V power adapter supplies the Peltier and cooling fan, keeping high currents away from the Arduino while a fused connection ensures safe operation. The complete parts list and firmware are included to get the system monitoring and alerting immediately.

Wiring diagram

Wiring diagram for Rust Risk Email Alert
Loading diagram…

Gather all the parts

QtyComponent
1

DFR0067 DHT11 sensor module (5 V compatible)

DFRobot specifies 3.3-5 V supply and digital interface. Use the three-wire breakout, not the bare sensor.

1

Hc 05 Bluetooth Module

Serial Bluetooth module for wireless communication using UART interface. Operates at 9600 baud (Data Mode) or 38400 baud (AT Command Mode). Supports two-way full-duplex wireless functionality with range up to 100m.

1

Resistor

1 kOhm

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

2 kOhm

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

220 Ohm

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

10 kOhm

Through-hole resistor (current-limiting in series with an LED)

1

IRLZ44N Logic-Level N-Channel MOSFET

Logic-level N-channel MOSFET commonly used as a low-side switch for DC loads from 3.3V or 5V microcontroller GPIO. Use a gate resistor, a gate pulldown, and a flyback diode for inductive loads.

1

TEC1-12706 Peltier module

12 V thermoelectric cooler; red positive, black negative. Requires clamped heatsinks and condensation drainage. Maximum current 6.4 A.

1

Enclosed regulated 12 V 10 A DC adapter

Factory-enclosed certified adapter with insulated low-voltage output; do not use an exposed mains supply.

1

7.5 A inline automotive blade fuse and holder

Series fuse next to the adapter positive output, with insulated holder.

1

12 V four-wire PC cooling fan

Runs at full speed with PWM unconnected, as specified by the catalog.

Assemble it in 5 steps

1. Build the cold plate and drain

Clamp the TEC1-12706 between a cold aluminium plate and a large hot-side heatsink using thermal paste. Mount the fan on the hot-side heatsink. Put the cold plate inside a small closed storage box and the hot heatsink outside. Collect water in a tray with a drain outside the box.

  • Never power the Peltier without its heatsink and running fan. This prototype has no automatic hot-side temperature protection; operate under supervision only.
  • Keep condensed water away from stored metal and all electronics. It is not a room dehumidifier.

2. Wire the humidity sensor

Use the DFR0067 three-wire DHT11 breakout. VCC to Uno 5V, GND to GND, DATA to D2 (humidity and temperature data). Place it away from the cold plate and water.

3. Wire Bluetooth with voltage protection

Use the HC-05 breakout with onboard regulator, not the bare 3.3V radio. Vcc to 5V, GND to GND, TX to D10 (data into Uno). D11 goes through the 1 kOhm resistor to RX; connect the 2 kOhm resistor from RX to GND. This lowers the outgoing 5V signal to about 3.3V. Leave KEY and STATE unconnected.

4. Build the high-current switch

D6 goes through the 220 Ohm resistor to MOSFET gate; 10 kOhm goes between gate and source to keep it off at startup. Source goes to shared ground. Drain goes to Peltier negative. Identify gate, drain and source from the IRLZ44N datasheet before connecting; do not guess leg order. Mount the MOSFET on a small insulated heatsink.

  • Peltier current must use screw terminals and at least 18 AWG wire, never a solderless breadboard or Uno pins. The MOSFET metal tab is electrically connected to drain.

5. Connect the separate power adapter

With power unplugged, connect adapter positive through the 7.5A fuse to Peltier positive and fan 12V. Adapter negative connects to fan ground, MOSFET source and Uno GND. Leave fan PWM and TACH disconnected so it runs at full speed. Power the Uno through USB separately.

  • Never connect 12V to the Uno 5V pin. Use a factory-enclosed 12V 10A adapter; do not work on mains wiring.

Review all connections

1. Connections between "humidity" and "Arduino"

FunctionhumidityArduino
powerVCC5V
groundGNDGND
dataDATAGPIO 2

2. Connections between "bluetooth" and "Arduino"

FunctionbluetoothArduino
powerVcc5V
groundGNDGND
dataTXGPIO 10

3. Connections between "divider_top" and "Arduino"

Functiondivider_topArduino
digitalP1GPIO 11
digitalP2 → Hc 05 Bluetooth Module RXEXT

4. Connections between "divider_bottom" and "Arduino"

Functiondivider_bottomArduino
digitalP1 → Hc 05 Bluetooth Module RXEXT
groundP2GND

5. Connections between "gate_series" and "Arduino"

Functiongate_seriesArduino
digitalP1GPIO 6
digitalP2 → IRLZ44N Logic-Level N-Channel MOSFET GATEEXT

6. Connections between "gate_pull" and "Arduino"

Functiongate_pullArduino
digitalP1 → IRLZ44N Logic-Level N-Channel MOSFET GATEEXT
digitalP2 → IRLZ44N Logic-Level N-Channel MOSFET SOURCEEXT

7. Connections between "switch" and "Arduino"

FunctionswitchArduino
groundSOURCEGND

8. Connections between "supply" and "Arduino"

FunctionsupplyArduino
groundNEGGND
powerPOS → 7.5 A inline automotive blade fuse and holder INEXT

9. Connections between "fuse" and "Arduino"

FunctionfuseArduino
powerOUT → TEC1-12706 Peltier module POSEXT

10. Connections between "cooler" and "Arduino"

FunctioncoolerArduino
dataNEG → IRLZ44N Logic-Level N-Channel MOSFET DRAINEXT

11. Connections between "fan" and "Arduino"

FunctionfanArduino
power12V → 7.5 A inline automotive blade fuse and holder OUTEXT
groundGND → Enclosed regulated 12 V 10 A DC adapter NEGEXT

Deploy the firmware

#include <Arduino.h>
#include <SoftwareSerial.h>
SoftwareSerial phone(10,11);
const uint8_t SENSOR=2, COOLER=6;
bool risk=false, running=false;
uint8_t highCount=0,lowCount=0;
unsigned long lastRead=0,started=0,pauseUntil=0;
// DHT11: 18 ms start low, 80 us response low/high, 40 timed data bits.
bool waitLevel(uint8_t level, unsigned int timeout) {
  unsigned long t=micros();
  while(digitalRead(SENSOR)==level) if(micros()-t>timeout)return false;
  return true;
}
bool readDht(float &rh,float &tc){
  uint8_t b[5]={0};
  pinMode(SENSOR,OUTPUT);digitalWrite(SENSOR,LOW);delay(20);
  digitalWrite(SENSOR,HIGH);delayMicroseconds(30);pinMode(SENSOR,INPUT_PULLUP);
  noInterrupts();
  bool ok=waitLevel(HIGH,100)&&waitLevel(LOW,100)&&waitLevel(HIGH,100);
  for(uint8_t i=0;i<40&&ok;i++){
    ok=waitLevel(LOW,100);unsigned long t=micros();
    if(ok)ok=waitLevel(HIGH,100);
    b[i/8]=(b[i/8]<<1)|((micros()-t)>45 ? 1:0);
  }
  interrupts();
  if(!ok || uint8_t(b[0]+b[1]+b[2]+b[3])!=b[4])return false;
  rh=b[0]+b[1]*0.1f;tc=b[2]+b[3]*0.1f;
  return rh>=20&&rh<=90&&tc>=0&&tc<=50;
}
void output(float rh,float tc,bool valid){
  // CSV: DATA,humidity,temperature,risk,cooler -- one line every 3 seconds.
  phone.print(valid?F("DATA,"):F("ERROR,"));phone.print(rh,1);phone.print(',');
  phone.print(tc,1);phone.print(',');phone.print(risk?1:0);phone.print(',');phone.println(running?1:0);
  Serial.print(valid?F("Humidity %: "):F("SENSOR ERROR: "));Serial.print(rh);Serial.print(F(" temperature C: "));Serial.println(tc);
}
void setup(){digitalWrite(COOLER,LOW);pinMode(COOLER,OUTPUT);Serial.begin(9600);phone.begin(9600);}
void loop(){
  unsigned long now=millis();
  if(now-lastRead<3000)return;lastRead=now;
  float rh=0,tc=0;bool valid=readDht(rh,tc);
  if(!valid){running=false;highCount=lowCount=0;digitalWrite(COOLER,LOW);output(rh,tc,false);return;}
  if(rh>=60){if(highCount<20)highCount++;lowCount=0;}else if(rh<=50){if(lowCount<20)lowCount++;highCount=0;}else{highCount=lowCount=0;}
  if(highCount>=20)risk=true;
  if(lowCount>=20)risk=false;
  if(running&&(!risk||now-started>=600000UL)){running=false;pauseUntil=now+120000UL;}
  if(!running&&risk&&(pauseUntil==0||(long)(now-pauseUntil)>=0)){running=true;started=now;}
  digitalWrite(COOLER,running?HIGH:LOW);output(rh,tc,true);
}

Remix this project

Make it yours in one click

Open a full copy of this project in your own Schematik workspace, diagram, code, parts, and assembly steps included. Swap the sensor, add features, or redesign the whole thing with AI. The author's original stays untouched.

Open in Schematik