// #include <PKG_NAME> // <-- PKG_NAME reference to a package name where you already installing the package, this is for assigning a package for an extra or a custom function
// Variables
const int LED1 = 13; // <-- '13' was a placeholder number where is the component placed at, and const is a type where the variable cant reassign or edited
const int POTENSIO = A3;
int valPo;
// in .ino we need a function setup and loop with void type as .ino core, without this .ino didnt worked well
void setup() {
Serial.begin(9600);
pinMode(LED1, OUTPUT); // <-- 'LED1' is a variable that we already assign, and 'OUTPUT' its a mode type where it should send a result but if you want to set it as an request you can set the type as 'INPUT'
pinMode(POTENSIO, INPUT);
}
void loop() {
valPo = analogRead(POTENSIO);
Serial.println(valPo);
digitalWrite(LED1, HIGH); // <-- digitalWrite() is a function for write a result and send it to the component, 'HIGH' value return a true value or 1 but 'LOW' value return a false value or 0
delay(1000); // <-- 1 second
digitalWrite(LED1, LOW); // <-- Off
delay(1000); // <-- 1 second
}