Instructions

IDUINO for maker’s life
20 www.openplatform.cc
digitalWrite (Led, LOW);
}
}
********Code End********
3.2 Example 2
This example show you the Analog pin function, connect this module as below picture, and
upload the code.
Then open the Serial monitor, you can see some number between 0 to 1023. And now if
you make some high or low voice, the number is changing.
Code for Example2
********Code begin********
int sensorPin = A5; // select the input pin for the potentiometer
void setup ()
{
Serial.begin (9600);
}
void loop ()
{
sensorValue = analogRead (sensorPin);
delay (500);
Serial.println (sensorValue, DEC);