









| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V to 5V DC) |
| 2 | GND | Ground connection |
| 3 | OUT | Digital output signal (High when glass break is detected, Low otherwise) |
| 4 | ADJ (optional) | Sensitivity adjustment pin (if available, used to fine-tune detection threshold) |
Connecting the Sensor:
Integrating with an Arduino UNO:
// Glass Break Sensor Example with Arduino UNO
// This code reads the sensor's output and triggers an alert when glass break is detected.
const int sensorPin = 2; // Connect the OUT pin of the sensor to digital pin 2
const int ledPin = 13; // Built-in LED on Arduino for visual alert
void setup() {
pinMode(sensorPin, INPUT); // Set sensor pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication for debugging
}
void loop() {
int sensorValue = digitalRead(sensorPin); // Read the sensor's output
if (sensorValue == HIGH) {
// Glass break detected
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Glass break detected!"); // Print alert to serial monitor
delay(1000); // Wait for 1 second to avoid multiple triggers
} else {
// No glass break detected
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
The sensor does not detect glass breakage.
False triggers occur frequently.
No output signal is received.
Q: Can this sensor detect other types of sounds?
A: No, the sensor is specifically designed to detect the unique sound or vibration pattern of breaking glass.
Q: How do I test the sensor without breaking actual glass?
A: You can use a recording of breaking glass played at a sufficient volume near the sensor to simulate the sound.
Q: Can I use this sensor outdoors?
A: The sensor is typically designed for indoor use. If used outdoors, ensure it is protected from moisture and extreme temperatures.
Q: What is the maximum detection range?
A: The sensor can detect glass breakage up to 6 meters away, depending on environmental factors such as noise and obstructions.