Add the following snippet to your HTML:
When noise in room exceeds certain amount notification will appear on your phone.
Read up about this project on
When noise level eceeds certain dbs notification will appear in your phone.
#define CUSTOM_SETTINGS #define INCLUDE_MIC_SHIELD #define INCLUDE_NOTIFICATION_SHIELD /* Include 1Sheeld library. */ #include <OneSheeld.h> static boolean isSent = false; void setup() { /* Start communication. */ OneSheeld.begin(); } void loop () { /* Always check the noise level. */ if(Mic.getValue() > 80) { if(!isSent){ Notification.notifyPhone("Noise level excceded the limit."); isSent = true; } } else { isSent = false; } }
1Sheeld
Comments