//NODE-MCU
//7MIR1
//JEAL, SBA, AFRI
//Declaracion de Variables
const int ledPin = 19; // GPIO16
// setting PWM properties
const int freq = 5000;
const int ledChannel = 0;
const int resolution = 12;
void setup(){
Serial.begin(9600);
// Config. de Pin de Incremento
ledcSetup(ledChannel, freq, resolution);
// control GPIO
ledcAttachPin(ledPin, ledChannel);
}
void loop(){
int sensorValue = analogRead(A10);
Serial.println(sensorValue);
ledcWrite(ledChannel, sensorValue);
delay(100);
}