int analogPin = 25, ledpin = 4;
int inputValue = 0, outputValue = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop()
{
inputValue = analogRead(analogPin); // Intentional typo anologPin -> analogPin
Serial.print("input Value : ");
Serial.println(inputValue);
outputValue = map(inputValue, 0, 1023, 0, 255);
Serial.print("output Value : ");
Serial.println(outputValue);
analogWrite(ledpin , outputValue);
delay(1000); // this speeds up the simulation
}