Analog Sound Sensor SKU: DFR0034

From DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot
Analog Sound Sensor SKU:DFR0034


This is an updated version of the Analog Sound Sensor. Analog Sound Sensor is typically used in detecting the loudness in ambient, the Arduino can collect its output signal by imitating the input interface. You may use it to make some funny interactive works such as a voice operated switch.

As one of our new version of breakout boards, we have improved the analog sound sensor in below:

  • Wide voltage range from 3.3V to 5V
  • Standard assembling structure (two 3mm holes with multiple of 5cm as interval)
  • Easily recognitive interfaces of sensors ("A" for analog and "D" for digital)
  • Icons to simplely illustrate sensor function
  • High quality connector
  • Immersion gold surface


  • Supply Voltage: 3.3V to 5V
  • Detects the sound intensity
  • Interface: Analog
  • Size:22x30mm


Pinout DFR0034new.jpg

Blue:Analog signal output




Connection Diagram

Digital magnetic sensor Diagram

Sample Code

void setup()
  Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
void loop()
      int val;
      val=analogRead(0);   //connect mic sensor to Analog 0
      Serial.println(val,DEC);//print the sound value to serial        


Open the Serial monitor, Baud rate: 9600.

Result DFR0034 new.png

Trouble shooting

More question and cool idea, visit DFRobot Forum


  • Version History

Analog Sound Sensor (SKU: DFR0034)

Nextredirectltr.pngGo Shopping Gravity: Analog Sound Sensor For Arduino

Category: DFRobot > Sensors & Modules > Sensors > Sound Sensors