Analog Microphone is a simple sound sensor that detects the sound strength of environment.
1) Connect MK20 USB board to your PC.
3) Connect the Sound Sensor to analog pin A2.
4) Connect the temperature sensor to A1.
5) Connect the LCD Display in I2C .
Refer to this Pinout Diagram to make connections.
Programming is done in the Energia IDE.
Here I am using Ubidots for IoT cloud, with Ubidots we can visualizing the data in an effective way. It supports a wide range of devices and can also trigger some actions like sending mails and messages. It also offers numbers of API to speed our development with the language of our choice.
Setting up Ubidots
If everything works fine you will notice data being send to Ubidots cloud. Navigate to Ubidots dashboard, you will see all the data sent from the sensor in our widgets. Here I have also created some alerts, if the sound level exceeds up to a certain level (means baby is crying) an alert will send to our mobile phone through SMS.