IOT Lab Experiment No.3
IOT Lab Experiment No.3
Hardware Required:
Connection diagram:
Steps of working:
1. Connect Grove-Gas_Sensor-MQ2 to port A0 of Grove-Base Shield.
2. Plug Grove - Base Shield into Arduino.
3. Connect Arduino to PC via a USB cable.
4. Upload the code.
5. Observe the clicking sound of the relay that states the ON and OFF constantly.
Sketch:
This sketch works by setting 5V supply pin of Arduino as for the control of relay module. After that
the run a loop that continually sends that value as voltage to the D6 with the delay given;
}
Observations:
Sensor Voltage