TOUCH SENSOR ALARM USING ARDUINO
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
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
The Arduino continuously monitors the output of the touch sensor.
The touch sensor has two main states:
No Touch
The sensor output is LOW.
The buzzer remains OFF.
Touch Detected
The sensor output becomes HIGH.
The Arduino turns the buzzer ON.
When the touch is removed, the buzzer turns OFF again.
Program Flow
The program follows these steps:
- Initialize the touch sensor as an input.
- Initialize the buzzer as an output.
- Read the touch sensor.
- Check whether the sensor output is HIGH.
- If HIGH, activate the buzzer.
- If LOW, deactivate the buzzer.
- Repeat continuously.
Main Code Logic
The main detection condition is:
This allows the buzzer to respond immediately when touch is detected.
Main Features
- Touch-based detection
- Automatic buzzer activation
- Simple digital input
- Real-time response
- Low component count
- Easy to build
- Suitable for Arduino Uno/Nano
Downloads
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.