Introduction: DIY ESP32 Blinker: Designing and Building a Temperature Alarm Device Using ESP32

DIY ESP32 Blinker: Designing and Building a Temperature Alarm Device Using ESP32

Step 1:

  1. Hardware Materials:


  1. 1 * ESP32 development board
  2. 1 * DHT11 temperature and humidity module
  3. 1 * MQ-2 smoke module
  4. 1 * MX1508 motor driver module
  5. 1 * DC motor
  6. 1 * OLED display module [white] [0.96 inches]
  7. 1 * Buzzer module
  8. 1 * MLX90614 infrared temperature measurement module
  9. 1 * MICRO data cable [0.5m]
  10. 1 * Battery [USB-A/microUSB]
  11. Other potential components required (breadboard, resistors, capacitors, wires/DuPont wires, etc.)
  12. Possible tools needed (multimeter, soldering iron and solder, pliers/scissors, wire strippers/lighter, regular tape/electrical tape/glue gun, etc.)


  1. Functionality:


Step1:The ESP32 development board reads temperature and humidity using the DHT11 sensor module, displaying the environmental temperature and humidity on the OLED screen and mobile app. When the temperature exceeds a certain level, the fan will be turned on.


Step2: The ESP32 development board tracks smoke gas concentration using the MQ-2 smoke sensor module. When the concentration surpasses a predetermined level, the buzzer sounds an alarm. Both the current smoke concentration and the alarm status are displayed on the OLED screen and accessible via the mobile app.

Step3: The ESP32 development board measures both object and ambient temperatures using the MLX90614 infrared thermometer module. If the body temperature exceeds a specified threshold, warning messages will be displayed on the OLED screen and the mobile app

Step4: Users can set the smoke concentration threshold via the mobile app.


Step5: Users can configure the environmental temperature threshold through the mobile app.


Step6: Users can set the human body temperature threshold via the mobile app.


For any details not specifically covered, please consult the requirements and concept images/videos for guidance.

  1. post-update circuit diagram
  2. Schematic diagram:


Step 2:

  1. complete Arduino code

Below is the detailed process of the development code.


Step 3:

  1. Effect Demonstration
  2. Blinker APP Mobile Interface


Step 4:

  1. Video link



Tag:Temperature Alarm Device, ESP32 Development Board, Electronic Components