Security
Secure data upload to openSenseMap
Information on connecting and programming the sensors, Bees and other components
The DFRobot SEN0232 measures the volume and outputs the measured values in decibels.
#define SoundSensorPin A1 //this pin read the analog voltage from the sound level meter
#define VREF 5.0 //voltage on AREF pin,default:operating voltage
void setup()
{
Serial.begin(115200);
}
void loop()
{
float voltageValue,dbValue;
voltageValue = analogRead(SoundSensorPin) / 1024.0 * VREF;
dbValue = voltageValue * 50.0; //convert voltage to decibel value
Serial.print(dbValue,1);
Serial.println(" dBA");
delay(125);
}