Smart Classroom Noise Monitor Using Arduino Uno R4 WiFi

In this project, learners explore how technology can support better learning environments using Arduino and a sound sensor. They measure classroom noise levels and program alerts when sound becomes too high, helping everyone stay focused. We have included extra challenges that encourage learners to adjust sensitivity and alert styles, making learning fun and interactive. Through this hands-on experience, learners build data awareness, decision-making, and problem-solving skills while discovering how smart systems can promote respect, self-regulation, and positive shared learning spaces.

ItemPurpose
Arduino Uno R4 WiFiControls the entire noise monitoring system
BreadboardAllows easy connection of components
Sound Sensor ModuleDetects noise levels
Red LEDVisual warning when noise is too loud
Buzzer (Active)Sound alert for high noise
220Ω ResistorProtects the LED
Jumper WiresConnect components together
USB CablePowers and programs the Arduino

Here is how each components connect:

Sound Sensor Module

  • VCC → connects to the 5V on the Arduino

  • GND → connects to the GND on the Arduino

  • OUT → connects to the Analog pin A0 on the Arduino.

This allows the Arduino to read sound levels as numeric values.

Red the LED

Noise Warning Light

  • Connect the long leg (positive/anode) of the LED to one end of the 220Ω resistor

  • Connect the other end of the resistor to digital pin 9 on the Arduino.

  • Connect the short leg (negative/cathode) of the LED to the GND on the Arduino.

 The Buzzer

Sound the alarm when noise exceeds the safe level

  • Connect the positive (+) pin of the buzzer to digital pin 8 on the Arduino.

  • Connect the negative (–) pin of the buzzer to the GND rail.

Open the Arduino IDE on your computer and type this code:


int soundPin = A0;

int ledPin = 9;

int buzzerPin = 8;

int soundValue = 0;
int noiseThreshold = 600;

void setup() {
pinMode(ledPin, OUTPUT);
pinMode(buzzerPin, OUTPUT);
Serial.begin(9600);
}

void loop() {
soundValue = analogRead(soundPin);
Serial.println(soundValue);

if (soundValue > noiseThreshold) {
digitalWrite(ledPin, HIGH);
digitalWrite(buzzerPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
digitalWrite(buzzerPin, LOW);
}

delay(300);
}

  1. Connect your Arduino Uno to your computer using the USB cable
  2. In the Arduino IDE, go to:
  • Tools → Board → Arduino Uno
  • Tools → Port → (Select your Arduino port)
  1. Click the Upload button (the right arrow icon).
  2. Watch your project come to life!

CodeWhat It Does
soundPin = A0Reads sound data from the microphone
ledPin = 9Controls the warning LED
buzzerPin = 8Controls the buzzer
noiseThresholdSets the maximum allowed noise level
analogRead()Reads sound level as a number
if (soundValue > threshold)Checks if noise is too loud
digitalWrite(HIGH)Turns ON LED and buzzer
digitalWrite(LOW)Turns OFF alerts

  • LED or buzzer not working

    • Check pin numbers in the code

    • Ensure correct polarity of LED and buzzer

  • Alerts always ON

    • Increase the noiseThreshold

    • Reduce microphone sensitivity

  • No Serial Monitor data

    • Set baud rate to 9600

    • Check A0 connection

  • How sound is measured using sensors

  • How Arduino converts sound into data

  • How to build alert systems using conditions

  • Why noise control matters in learning spaces

  • Basic electronics, coding, and teamwork skills

  • Add multiple LEDs (green, yellow, red) for noise levels

  • Display noise levels on an LCD screen

  • Add a reset button for teachers

  • Log noise data during the school day

  • Create classroom rules based on noise levels