TOUCH SENSOR ALARM USING ARDUINO

by DESHBOT in Circuits > Arduino

15 Views, 0 Favorites, 0 Comments

TOUCH SENSOR ALARM USING ARDUINO

WhatsApp Image 2026-09-25 at 10.28.42 AM.jpeg

The Touch Sensor Alarm is a simple Arduino-based security project that detects physical touch and activates a buzzer.

A touch sensor is connected to the Arduino input pin. When someone touches the sensor, the sensor sends a HIGH signal to the Arduino. The Arduino detects this signal and turns ON the buzzer.

When the touch is removed, the buzzer automatically turns OFF.

Supplies

des 1.jpeg
WhatsApp Image 2026-08-26 at 12.07.35 PM.jpeg
uno.jpeg

Components Required

ComponentQuantity

Arduino Uno/Nano

Touch Sensor Module

Buzzer

Jumper Wires

As required

Breadboard

Pin Connections


Touch Sensor

Touch SensorArduino

OUT - D9

VCC - 5V

GND - GND

Buzzer

BuzzerArduino

Positive (+) - D11

Negative (-) - GND

Working Principle

WhatsApp Image 2026-09-25 at 10.28.42 AM.jpeg


The Arduino continuously monitors the output of the touch sensor.

The touch sensor has two main states:

No Touch

The sensor output is LOW.

touch == LOW

The buzzer remains OFF.

Touch Detected

The sensor output becomes HIGH.

touch == HIGH

The Arduino turns the buzzer ON.

digitalWrite(BUZZER, HIGH);

When the touch is removed, the buzzer turns OFF again.


Program Flow

The program follows these steps:

  1. Initialize the touch sensor as an input.
  2. Initialize the buzzer as an output.
  3. Read the touch sensor.
  4. Check whether the sensor output is HIGH.
  5. If HIGH, activate the buzzer.
  6. If LOW, deactivate the buzzer.
  7. Repeat continuously.


Main Code Logic

The main detection condition is:

if (touch == HIGH) {
digitalWrite(BUZZER, HIGH);
}
else {
digitalWrite(BUZZER, LOW);
}

This allows the buzzer to respond immediately when touch is detected.


Main Features

  1. Touch-based detection
  2. Automatic buzzer activation
  3. Simple digital input
  4. Real-time response
  5. Low component count
  6. Easy to build
  7. Suitable for Arduino Uno/Nano


Conclusion


The Touch Sensor Alarm demonstrates how an Arduino can detect a touch event and control an output device in response.

The project uses a touch sensor as the input and a buzzer as the output. It provides a simple introduction to digital sensors, conditional statements and real-time Arduino control.