How to program arduino for beginner's part 2 Analog signal read: Today am going to write the program to read analog signal serially using analog inputs . first we have to connect the any one analog sensor or potentiometer to the one of analog input A0 to A5. In this program am going to connect the potentiometer to A0 pin. program: void setup() { serial.begin(9600); } void loop() { int sensorValue = analodRead(A0); Serial.println(sensorValue); delay(1); }
ALL ABOUT TECHNOLOGY,andthinker embedded tutorials and IOT tutorials ,interview questions